diff --git a/demo/src/index.tsx b/demo/src/index.tsx index 1eb9c3ef..21166279 100644 --- a/demo/src/index.tsx +++ b/demo/src/index.tsx @@ -70,6 +70,7 @@ const Example = (): JSX.Element => (
name | +type | +default | +description | +
---|---|---|---|
expanded | +Boolean | +false | +Expands this item on first render | +
render | +Function | +returns null | ++ Takes expanded state as argument for + conditional rendering + | +
- When you open/close this item, you should see the icon - next to the heading change. + When you open/close this item, you should see the text + under the heading change.
- Use the AccordionItemState component inside an Accordion - item and pass it a render prop function that takes the - item's expanded/collapsed state. + Pass the AccordionItemState component a render prop + function. +
++ This should take the item's expanded state as an + argument.