Skip to content

Commit

Permalink
feat: add max and min rows controls to textarea storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
rjborba committed Jul 4, 2024
1 parent 59fd258 commit 3a8ced7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/storybook/stories/textarea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ type Story = StoryObj

export const TextArea: Story = {
render: (args) =>
`<orama-textarea name='test1' label='Small size input' size='small' placeholder='Blablablbal' max-rows='5'></orama-textarea>`,
`<orama-textarea name='test1' label='Small size input' size='small' placeholder='Blablablbal' max-rows=${args.maxRows} min-rows=${args.minRows}></orama-textarea>`,
args: {
placeholder: 'Name'
placeholder: 'Name',
maxRows: 5,
minRows: 1
}
}

0 comments on commit 3a8ced7

Please sign in to comment.