Accordion
Collapsible sections (WAI-ARIA accordion pattern); one open at a time, or several with multiple.
Variants
default
No.
macOS, Linux and Windows on the desktop; iOS and Android through
Yes:
ray build --native makes a single binary; ray run uses the VM for quick iterations.ray bundle.ray new app --frontend react-ts, then the @raylang/react wrappers.
contained
No.
macOS, Linux and Windows on the desktop; iOS and Android through
Yes:
ray build --native makes a single binary; ray run uses the VM for quick iterations.ray bundle.ray new app --frontend react-ts, then the @raylang/react wrappers.
separated
No.
macOS, Linux and Windows on the desktop; iOS and Android through
Yes:
ray build --native makes a single binary; ray run uses the VM for quick iterations.ray bundle.ray new app --frontend react-ts, then the @raylang/react wrappers.
filled
No.
macOS, Linux and Windows on the desktop; iOS and Android through
Yes:
ray build --native makes a single binary; ray run uses the VM for quick iterations.ray bundle.ray new app --frontend react-ts, then the @raylang/react wrappers.Icons and descriptions
Theme
Rich headers and content
macOS arm644.2 MB Linux x86_644.6 MB Windows x86_645.1 MB
ui: palette lists the menu commands passed on retry.
Options
chevron-position="start" · multiple
main.ray, ui.ray, files.ray
files_test.ray, ui_test.ray
index.html, app.css, icon.png
disabled item · value from code
Up to 3 projects and 1 GB of builds.
Unlimited projects, signed releases and an update channel.
Shared projects and roles.
Open Free
Open Pro
Close all
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-accordion>
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
value | value | string | Open item's value; with multiple, an array (attribute: comma-separated). | |
multiple | multiple reflects | boolean | Several items may be open. | |
variant | variant reflects | default | contained | separated | filled | default | Visual style. |
chevronPosition | chevron-position reflects | end | start | right | left | end | Side of the chevron: start/end follow the writing direction; left/right are sides of the screen. |
| Event | Description |
|---|---|
change | The user opened or closed an item. |
| Slot | Description |
|---|---|
| (default) | ray-accordion-item elements. |
<ray-accordion-item>
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
value | value reflects | string | Identifies the item in the accordion's value. | |
label | label | string | Header text (or slot=label). | |
description | description | string | A secondary line under the label, in the header. | |
disabled | disabled reflects | boolean | Cannot be toggled. | |
headingLevel | heading-level | number | 3 | aria-level of the header. |
| Slot | Description |
|---|---|
| (default) | Panel content. |
label | Rich header content. |
left | Icon before the label. |
| Part | Description |
|---|---|
control | The header button. |
description | The secondary line under the label. |
panel | The collapsible region. |