File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ export const button = recipe({
6464 borderRadius : radius [ 160 ] ,
6565 } ,
6666 } ,
67+ fullWidth : {
68+ true : {
69+ width : "100%" ,
70+ } ,
71+ } ,
6772 } ,
6873 defaultVariants : {
6974 variant : "primary" ,
Original file line number Diff line number Diff line change @@ -8,17 +8,19 @@ type ButtonSize = "small" | "medium" | "large" | "fullWidth";
88export type ButtonProps = {
99 variant ?: ButtonVariant ;
1010 size ?: ButtonSize ;
11+ fullWidth ?: boolean ;
1112 className ?: string ;
1213} & ComponentProps < "button" > ;
1314
1415export const Button = ( {
1516 children,
1617 variant = "primary" ,
1718 size = "medium" ,
19+ fullWidth = false ,
1820 className,
1921 ...props
2022} : ButtonProps ) => {
21- const variantClass = button ( { variant, size } ) ;
23+ const variantClass = button ( { variant, size, fullWidth } ) ;
2224
2325 return (
2426 < button className = { `${ variantClass } ${ className ?? "" } ` } { ...props } >
You can’t perform that action at this time.
0 commit comments