Skip to content

AccordionPro

Supporting detail revealed in place: the panel height grows while the answer slides down out of a blur, the chevron springs.

oxyn add accordion

Reads, searches and edits inside the workspace run freely. Pushing, deleting, spending and sending messages always stop for an approval.

Each run gets a fresh sandbox with your repository mounted read-write and the network limited to the domains you allow.

Tokens in and out per model, plus tool time. The run meter shows a live total and stops the run at your budget.

Yes. Every tool call is a checkpoint; restore one and the next attempt branches from it.
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • FAQ and settings sections, and collapsible detail in agent screens (policy, sandbox, billing) read in order.

When not to use

Installation

Accordion is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add accordion

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Faq

Single-open questions.

Reads, searches and edits inside the workspace run freely. Pushing, deleting, spending and sending messages always stop for an approval.

Each run gets a fresh sandbox with your repository mounted read-write and the network limited to the domains you allow.

Tokens in and out per model, plus tool time. The run meter shows a live total and stops the run at your budget.

Yes. Every tool call is a checkpoint; restore one and the next attempt branches from it.
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Multiple

Several open, with Expand all (Oxyn plus).

Reads, searches and edits inside the workspace run freely. Pushing, deleting, spending and sending messages always stop for an approval.

Each run gets a fresh sandbox with your repository mounted read-write and the network limited to the domains you allow.

Tokens in and out per model, plus tool time. The run meter shows a live total and stops the run at your budget.

Yes. Every tool call is a checkpoint; restore one and the next attempt branches from it.
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Page

Large page-level FAQ.

Reads, searches and edits inside the workspace run freely. Pushing, deleting, spending and sending messages always stop for an approval.

Each run gets a fresh sandbox with your repository mounted read-write and the network limited to the domains you allow.

Tokens in and out per model, plus tool time. The run meter shows a live total and stops the run at your budget.

Yes. Every tool call is a checkpoint; restore one and the next attempt branches from it.
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Card

Inside a card with a meta column.

Reads, searches and edits inside the workspace run freely. Pushing, deleting, spending and sending messages always stop for an approval.

Each run gets a fresh sandbox with your repository mounted read-write and the network limited to the domains you allow.

Tokens in and out per model, plus tool time. The run meter shows a live total and stops the run at your budget.

Yes. Every tool call is a checkpoint; restore one and the next attempt branches from it.
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

Accordion

PropTypeDefaultDescription
itemsrequiredVec<AccordionItem>—Rows.
default_openOption<usize>Some(0)Open on first render (`None` = all closed).
multipleboolDefault::default()Several open at once.
sizeString"md"`md` · `lg`.
variantString"plain"`plain` · `separated` · `card`.
controlsboolDefault::default()Expand all / collapse all control (multiple mode).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterorSpaceToggle the focused row
↑ ↓Between triggers
HomeorEndFirst / last trigger

Accessibility

  • Triggers sit in h3 with aria-expanded and aria-controls.
  • Panels are labelled regions and become visibility:hidden once closed.
From the spec

Triggers in h3, wired with aria-controls / aria-labelledby to region panels; chevrons aria-hidden.

Motion & interaction

The panel grows on a grid-rows transition (retargets mid-flight) while the answer slides down 6 px out of a 2 px blur; the chevron rotates on a snappy spring.

Timing
TransitionDurationEasingReduced motion
Height320 msease.outinstant
Answer slide320 msease.outinstant
Chevron260 msspring-like overshootinstant

Responsive behaviour

  • Rows fill the width; lg caps answers at 62ch and tightens below 520px.
Edge cases (spec)

Closed panels stay mounted but visibility:hidden, so they leave the accessibility tree. lg caps answers at 62ch and tightens below 520 px.

Notes for AI

  • Import Accordion, AccordionItem from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: AccordionEl in oxyn_gpui.
  • Props to set first: items.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI