Skip to content

Commit

Permalink
feat(dropdown): integration and documentation with form-field
Browse files Browse the repository at this point in the history
  • Loading branch information
andresin87 committed Jan 3, 2024
1 parent 1c4548b commit c4aed65
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions packages/components/dropdown/src/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,32 +444,6 @@ export const FormFieldHiddenLabel: StoryFn = _args => {
)
}

export const FormFieldDisabled: StoryFn = _args => {
return (
<div className="pb-[300px]">
<FormField disabled>
<FormField.Label>Book</FormField.Label>
<Dropdown>
<Dropdown.Trigger aria-label="Book">
<Dropdown.Value placeholder="Pick a book" />
</Dropdown.Trigger>

<Dropdown.Popover>
<Dropdown.Items>
<Dropdown.Item value="book-1">To Kill a Mockingbird</Dropdown.Item>
<Dropdown.Item value="book-2">War and Peace</Dropdown.Item>
<Dropdown.Item value="book-3">The Idiot</Dropdown.Item>
<Dropdown.Item value="book-4">A Picture of Dorian Gray</Dropdown.Item>
<Dropdown.Item value="book-5">1984</Dropdown.Item>
<Dropdown.Item value="book-6">Pride and Prejudice</Dropdown.Item>
</Dropdown.Items>
</Dropdown.Popover>
</Dropdown>
</FormField>
</div>
)
}

export const FormFieldReadOnly: StoryFn = _args => {
return (
<div className="pb-[300px]">
Expand Down

0 comments on commit c4aed65

Please sign in to comment.