Products · Components

Disclosure

A row the person opens to show more, then closes again.

Put what it reveals between its tags.

Children: Components

Example

The Disclosure component
view.dml
<Disclosure title="Can I get a refund?" subtitle="Payments" open>
  <Text>Yes, within 24 hours of paying.</Text>
</Disclosure>

Props

PropTypeWhat it is
titlestring
subtitlestring
openbooleanWhether it starts open. After that, the person opens and closes it.
disabledbooleanIt stays open or closed as it is.

Events

EventSendsNotes
onToggle{ open } in detailWhether the person opened or closed it.

Keep reading

On this page