diff --git a/src/components/Button.tsx b/src/components/Button.tsx index d20f40b..199f4a7 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -8,7 +8,6 @@ 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) => ( @@ -41,14 +40,11 @@ export const Button = forwardRef(function Button( size === "lg" && "gap-1.5 px-6", ), ), - children: - icon == null ? ( - children - ) : ( - <> - {icon} {children} - - ), + children: ( + <> + {icon} {children} + + ), ...props, }); });