feat: update button component with new rounded options and story

This commit is contained in:
Anoop M D
2025-12-24 05:51:32 +05:30
parent c5abe4122b
commit dc9df80638
2 changed files with 12 additions and 21 deletions

View File

@@ -31,7 +31,7 @@ export default {
},
rounded: {
control: 'select',
options: ['sm', 'md', 'full'],
options: ['sm', 'base', 'md', 'lg', 'full'],
description: 'Border radius style'
},
disabled: {
@@ -307,25 +307,16 @@ export const Loading = {
};
// Rounded variants
export const RoundedSmall = {
args: {
children: 'Small Radius',
rounded: 'sm'
}
};
export const RoundedMedium = {
args: {
children: 'Medium Radius',
rounded: 'md'
}
};
export const RoundedFull = {
args: {
children: 'Pill Button',
rounded: 'full'
}
export const Rounded = {
render: () => (
<div style={{ display: 'flex', gap: '12px', alignItems: 'center' }}>
<Button rounded="sm">Small</Button>
<Button rounded="base">Base</Button>
<Button rounded="md">Medium</Button>
<Button rounded="lg">Large</Button>
<Button rounded="full">Full</Button>
</div>
)
};
// Full Width

View File

@@ -12,7 +12,7 @@ const Button = ({
iconPosition = 'left',
fullWidth = false,
type = 'button',
rounded = 'sm',
rounded = 'base',
fontWeight,
onClick,
onDoubleClick,