Skip to content

Commit

Permalink
docs: "Controlled usage" demo of <Collapsible> wasn't working (#3312)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald authored Dec 7, 2024
1 parent 5f0cb53 commit bf583b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Collapsible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ See the developer console for logging.
### Controlled usage
```jsx live
function() {
() => {
const [collapseIsOpen, setCollapseOpen] = React.useState(true);
return (
<Collapsible.Advanced
open={collapseIsOpen}
onToggle={isOpen => setCollapseOpen(!isOpen)}
onToggle={isOpen => setCollapseOpen(isOpen)}
className="collapsible-card"
>
<Collapsible.Trigger className="collapsible-trigger">
Expand Down

0 comments on commit bf583b1

Please sign in to comment.