Skip to content

Commit

Permalink
fix: stories
Browse files Browse the repository at this point in the history
  • Loading branch information
severinlandolt committed Oct 27, 2023
1 parent 4a62755 commit 9431a27
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/stories/input-elements/TextArea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default meta;
type Story = StoryObj<typeof Textarea>;

function Controlled({ ...args }) {
const [value, setValue] = React.useState<string>("");
const [value, setValue] = React.useState<string>("Default Value");
return (
<div className="space-y-4">
<Textarea {...args} value={value} onValueChange={(v: string) => setValue(v)} />
Expand Down Expand Up @@ -83,10 +83,3 @@ export const DefaultValue: Story = {
export const ControlledDefault: Story = {
...ControlledTemplate,
};

export const ControlledWithDefaultValue: Story = {
...ControlledTemplate,
args: {
defaultValue: "Default value comes here",
},
};

0 comments on commit 9431a27

Please sign in to comment.