Skip to content

Commit

Permalink
Docs(web-react): Corrected the example for Dropdown #DS-601
Browse files Browse the repository at this point in the history
- Replaced `renderToggle` with `renderTrigger` as the correct prop
  • Loading branch information
pavelklibani committed Nov 6, 2023
1 parent 3c0f08b commit 15c2b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-react/src/components/Dropdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ This is the React implementation of the [Dropdown] component.
## Usage

```jsx
import { Dropdown } from '@lmc-eu/spirit-web-react/components';
import { Dropdown, Button } from '@lmc-eu/spirit-web-react/components';
```

```jsx
<Dropdown id="DropdownExample" renderToggle={({ trigger }) => <button {...trigger}></button>}>
<Dropdown id="DropdownExample" renderTrigger={({ trigger }) => <Button {...trigger}>Trigger</Button>}>
</Dropdown>
```
Expand Down

0 comments on commit 15c2b51

Please sign in to comment.