Accordion

Collapsible sections (WAI-ARIA accordion pattern); one open at a time, or several with multiple.

Source on GitHub

Variants
default No. ray build --native makes a single binary; ray run uses the VM for quick iterations. macOS, Linux and Windows on the desktop; iOS and Android through ray bundle. Yes: ray new app --frontend react-ts, then the @raylang/react wrappers.
contained No. ray build --native makes a single binary; ray run uses the VM for quick iterations. macOS, Linux and Windows on the desktop; iOS and Android through ray bundle. Yes: ray new app --frontend react-ts, then the @raylang/react wrappers.
separated No. ray build --native makes a single binary; ray run uses the VM for quick iterations. macOS, Linux and Windows on the desktop; iOS and Android through ray bundle. Yes: ray new app --frontend react-ts, then the @raylang/react wrappers.
filled No. ray build --native makes a single binary; ray run uses the VM for quick iterations. macOS, Linux and Windows on the desktop; iOS and Android through ray bundle. Yes: ray new app --frontend react-ts, then the @raylang/react wrappers.
Icons and descriptions
Theme
Turn on two-step verification to sign in with a code from your phone.
Turn onLearn more
Rich headers and content
Build3 / 3
  • macOS arm644.2 MB
  • Linux x86_644.6 MB
  • Windows x86_645.1 MB
Tests1 flaky

ui: palette lists the menu commands passed on retry.

PublishPending
Publish 0.4.1
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
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-accordion>

PropertyAttributeTypeDefaultDescription
valuevaluestringOpen item's value; with multiple, an array (attribute: comma-separated).
multiplemultiple reflectsbooleanSeveral items may be open.
variantvariant reflectsdefault | contained | separated | filleddefaultVisual style.
chevronPositionchevron-position reflectsend | start | right | leftendSide of the chevron: start/end follow the writing direction; left/right are sides of the screen.
EventDescription
changeThe user opened or closed an item.
SlotDescription
(default)ray-accordion-item elements.

<ray-accordion-item>

PropertyAttributeTypeDefaultDescription
valuevalue reflectsstringIdentifies the item in the accordion's value.
labellabelstringHeader text (or slot=label).
descriptiondescriptionstringA secondary line under the label, in the header.
disableddisabled reflectsbooleanCannot be toggled.
headingLevelheading-levelnumber3aria-level of the header.
SlotDescription
(default)Panel content.
labelRich header content.
leftIcon before the label.
PartDescription
controlThe header button.
descriptionThe secondary line under the label.
panelThe collapsible region.