Skip to content

Commit

Permalink
docs(dropdown): add import example to docstring (#880)
Browse files Browse the repository at this point in the history
* docs(dropdown): add import example to docstring

* docs(dropdown): fix copy/pasta mistake in docstring
  • Loading branch information
dierat authored Mar 1, 2022
1 parent 90db10a commit 78832db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/src/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ function childrenHaveLabelComponent(children?: ReactNode): boolean {
}

/**
* ```ts
* import {Dropdown} from "@chanzuckerberg/eds-components";
* ```
*
* EDS Dropdown. Used to select one option from a list of options.
*
* Built on top of the Headless UI Listbox: https://headlessui.dev/react/listbox#basic-example
Expand Down

0 comments on commit 78832db

Please sign in to comment.