diff --git a/packages/ui/src/components/Button/Button.tsx b/packages/ui/src/components/Button/Button.tsx index ee79aeb9dbf..bb4d0eaa138 100644 --- a/packages/ui/src/components/Button/Button.tsx +++ b/packages/ui/src/components/Button/Button.tsx @@ -151,7 +151,7 @@ const Button = React.forwardRef( ({ asChild = false, size = 'tiny', type = 'primary', children, ...props }, ref) => { const Comp = asChild ? Slot : 'button' - const { className, disabled, loading, icon, iconLeft, iconRight } = props + const { className, disabled, loading, icon, iconLeft, iconRight, block } = props const showIcon = loading || icon @@ -163,7 +163,7 @@ const Button = React.forwardRef( ref={ref} type={props.htmlType} {...props} - className={cn(buttonVariants({ type, size, disabled }), className)} + className={cn(buttonVariants({ type, size, disabled, block }), className)} > {asChild ? ( React.isValidElement(children) ? (