Skip to content

Commit 325aa8c

Browse files
fix(tailwind/ButtonTwoLines): migrate vertical padding
1 parent dfa5a2e commit 325aa8c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tailwind/ui/buttons/ButtonTwoLines.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,26 @@ type ButtonTwoLinesProps = ButtonTypeProps | ButtonLinkTypeProps
5151
const ButtonTwoLines = ({
5252
iconAlignment = "start",
5353
className,
54+
size = "md",
5455
...props
5556
}: ButtonTwoLinesProps) => {
5657
const isIconLeft = ["left", "start"].includes(iconAlignment)
5758

5859
const commonClassStyles = cn(
5960
isIconLeft ? "text-start justify-start" : "text-end justify-end",
61+
size === "md" ? "py-4" : "py-2",
6062
className
6163
)
6264

6365
if (props.componentType === "link") {
6466
return (
65-
<ButtonLink className={commonClassStyles} {...props}>
67+
<ButtonLink className={commonClassStyles} size={size} {...props}>
6668
<ChildContent {...props} isIconLeft={isIconLeft} />
6769
</ButtonLink>
6870
)
6971
}
7072
return (
71-
<Button className={commonClassStyles} {...props}>
73+
<Button className={commonClassStyles} size={size} {...props}>
7274
<ChildContent {...props} isIconLeft={isIconLeft} />
7375
</Button>
7476
)

0 commit comments

Comments
 (0)