Skip to content

Commit

Permalink
feat: pass text props to NoOptions component (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch committed Jan 9, 2024
1 parent 1c55486 commit 721ad3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/BaseSelect/NoOptions/NoOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { ReactNode } from "react";
import { Text } from "~/components";
import { Text, TextProps } from "~/components";

export interface NoOptionsProps {
export interface NoOptionsProps extends TextProps {
children: ReactNode;
}

export const NoOptions = ({ children }: NoOptionsProps) => {
export const NoOptions = ({ children, ...props }: NoOptionsProps) => {
return (
<Text as="p" padding={2} textAlign="center" fontStyle="italic">
<Text as="p" padding={2} textAlign="center" fontStyle="italic" {...props}>
{children}
</Text>
);
Expand Down

1 comment on commit 721ad3e

@vercel
Copy link

@vercel vercel bot commented on 721ad3e Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.