Skip to content

Commit b40b41f

Browse files
committed
feat(button): add ghost variant style support
Add padding and height adjustments for ghost variant to match design requirements
1 parent 59712a3 commit b40b41f

File tree

1 file changed

+8
-0
lines changed
  • libs/rnc-theme/src/lib/components/ui/button

1 file changed

+8
-0
lines changed

libs/rnc-theme/src/lib/components/ui/button/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,14 @@ const Button = forwardRef<ButtonRef, ButtonProps>(
496496
...styles[size],
497497
borderRadius: theme.components.borderRadius[borderRadius],
498498
...(fullWidth && { width: '100%' }),
499+
// Tambahkan kondisi untuk ghost variant
500+
...(variant === 'ghost' && {
501+
paddingHorizontal: 0,
502+
paddingVertical: 0,
503+
paddingTop: 0,
504+
paddingBottom: 0,
505+
minHeight: 0,
506+
}),
499507
...(style as ViewStyle),
500508
}),
501509
[

0 commit comments

Comments
 (0)