<ui-details>
Disclosure built on native <details>.
Display · stable · since 2.0.0 · extends _UIElement
Examples
<ui-details heading="More" subheading="Click to expand">Hidden content</ui-details>
<ui-details heading="A" group="g">One</ui-details><ui-details heading="B" group="g">Two</ui-details>
Playground
Generated HTML
Event log
API
Attributes and properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
disabled | disabled | boolean | false | |
busy | data-ui-busy | boolean | false | |
open | open | boolean | false | Expanded state (reflected). |
heading | heading | string | "" | Summary heading. |
subheading | subheading | string | "" | Secondary line. |
group | group | string | "" | Exclusive group name. |
Methods
None.
Events
ui-toggle— Opened or closed; detail { open }.
Slots
(default)— Content.