Skip to content

Commit

Permalink
feat(input): add xs size variant
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 committed Oct 24, 2024
1 parent 1f9197f commit e739f45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/input/Input.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const Component: Meta<InputComponentProps> = {
argTypes: {
size: {
control: { type: 'select' },
options: ['xs', 'sm', 'md', 'lg', 'xl'],
options: ['xs', 'sm', 'md', 'lg'],
},
status: {
color: {
control: { type: 'select' },
options: ['neutral', 'brand', 'success', 'info', 'warning', 'danger'],
},
Expand Down
8 changes: 6 additions & 2 deletions packages/theme/src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export const input = tv({
},
},
size: {
xs: {
group: ['text-xs'],
input: ['min-h-6', 'placeholder:text-xs'],
},
sm: {
group: ['text-sm'],
input: ['min-h-8', 'placeholder:text-sm'],
Expand All @@ -44,8 +48,8 @@ export const input = tv({
input: ['min-h-10', 'placeholder:text-base'],
},
lg: {
group: ['min-h-12', 'text-lg'],
input: ['placeholder:text-lg'],
group: ['text-lg'],
input: ['min-h-12', 'placeholder:text-lg'],
},
},
shape: {
Expand Down

0 comments on commit e739f45

Please sign in to comment.