File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,24 +51,26 @@ type ButtonTwoLinesProps = ButtonTypeProps | ButtonLinkTypeProps
51
51
const ButtonTwoLines = ( {
52
52
iconAlignment = "start" ,
53
53
className,
54
+ size = "md" ,
54
55
...props
55
56
} : ButtonTwoLinesProps ) => {
56
57
const isIconLeft = [ "left" , "start" ] . includes ( iconAlignment )
57
58
58
59
const commonClassStyles = cn (
59
60
isIconLeft ? "text-start justify-start" : "text-end justify-end" ,
61
+ size === "md" ? "py-4" : "py-2" ,
60
62
className
61
63
)
62
64
63
65
if ( props . componentType === "link" ) {
64
66
return (
65
- < ButtonLink className = { commonClassStyles } { ...props } >
67
+ < ButtonLink className = { commonClassStyles } size = { size } { ...props } >
66
68
< ChildContent { ...props } isIconLeft = { isIconLeft } />
67
69
</ ButtonLink >
68
70
)
69
71
}
70
72
return (
71
- < Button className = { commonClassStyles } { ...props } >
73
+ < Button className = { commonClassStyles } size = { size } { ...props } >
72
74
< ChildContent { ...props } isIconLeft = { isIconLeft } />
73
75
</ Button >
74
76
)
You can’t perform that action at this time.
0 commit comments