Products · Components
Disclosure
A row the person opens to show more, then closes again.
Put what it reveals between its tags.
Children: Components
Example
<Disclosure title="Can I get a refund?" subtitle="Payments" open>
<Text>Yes, within 24 hours of paying.</Text>
</Disclosure>Props
| Prop | Type | What it is |
|---|---|---|
title | string | |
subtitle | string | |
open | boolean | Whether it starts open. After that, the person opens and closes it. |
disabled | boolean | It stays open or closed as it is. |
Events
| Event | Sends | Notes |
|---|---|---|
onToggle | { open } in detail | Whether the person opened or closed it. |
