Skip to content

Commit

Permalink
refactor(Button): constrain children to string
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Jul 15, 2024
1 parent 2066716 commit 9592f14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface ButtonProps extends React.ComponentPropsWithRef<"button"> {
size?: "auto" | "sm" | "md" | "lg";
icon?: React.ReactNode;
shape?: "rectangle" | "pill";
children?: string;
}

const defaultRender: ButtonProps["render"] = (props) => (
Expand Down

0 comments on commit 9592f14

Please sign in to comment.