A disclose button indicates collapsed content and expands when clicked.

Example

⌘ Cmd + ⌥ Option + 1

Properties

propertypropTyperequireddefaultdescription
indentedbool-true
childrennodeyes-
childrenStylestring--
headerStylestring--
isOpenbool--
noBorderbool--
titlestringyes-
togglefunc--

Usage

Use disclose when you want keep options or long-form content accessible but not in direct view. This is a good pattern to rely on when users may need to access something but it's not their primary focus.

Best Practices

Do

Hide non-essential content away from direct view but still accessible when needed

Don't

Use only for non-essential content, error messages or other critical info should always be visible in direct view