diff --git a/libs/rnc-theme/package.json b/libs/rnc-theme/package.json index 0f37850..b8e28c7 100644 --- a/libs/rnc-theme/package.json +++ b/libs/rnc-theme/package.json @@ -1,6 +1,6 @@ { "name": "rnc-theme", - "version": "0.0.94", + "version": "0.0.95", "funding": { "type": "github", "url": "https://github.com/masumrpg/react-native-components" diff --git a/libs/rnc-theme/src/lib/components/ui/button/index.tsx b/libs/rnc-theme/src/lib/components/ui/button/index.tsx index c52a6da..7cc588e 100644 --- a/libs/rnc-theme/src/lib/components/ui/button/index.tsx +++ b/libs/rnc-theme/src/lib/components/ui/button/index.tsx @@ -496,6 +496,14 @@ const Button = forwardRef( ...styles[size], borderRadius: theme.components.borderRadius[borderRadius], ...(fullWidth && { width: '100%' }), + // Tambahkan kondisi untuk ghost variant + ...(variant === 'ghost' && { + paddingHorizontal: 0, + paddingVertical: 0, + paddingTop: 0, + paddingBottom: 0, + minHeight: 0, + }), ...(style as ViewStyle), }), [