Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbychan committed Dec 7, 2023
1 parent 60a14b6 commit 551763e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/react/stories/textarea.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { input } from '@alice-ui/theme';
import { Meta, StoryObj } from '@storybook/react';
import React from 'react';
import { TextArea, TextAreaProps } from '../src/input';

const meta: Meta<typeof TextArea> = {
Expand Down Expand Up @@ -66,3 +65,17 @@ export const Disabled = {
disabled: true,
},
};

export const Sizes: Story = {
render: (args) => (
<div className="flex flex-col gap-4">
<TextArea {...args} size="sm" />
<TextArea {...args} size="md" />
<TextArea {...args} size="lg" />
</div>
),
args: {
placeholder: 'Enter your description',
className: 'max-w-[240px]',
},
};

0 comments on commit 551763e

Please sign in to comment.