Disclosure row
import { DisclosureList, DisclosureRow } from "@arcadia/ui";Resets Fri
Limit reached. Resets in 3h 30m
One account to sign in again
2 of 7 open1 back Wed
Seven accounts: two open now, one back Wed 10:00
DisclosureList
glide- boolean
- Default:
true - One shared highlight gliding between rows.
false: each row lights itself. size- "card" | "md"
- Default:
"card" - Its rows' height and inset:
card40, a card's;md28, the kit's row in Body, as a menu's. chevronOnHover- boolean
- Default:
false - Quiet rows: each chevron stands only under the pointer, on keyboard focus in its row and while its row is open, and at rest where nothing can hover. It keeps its column, so nothing moves.
rootStyle- RootStyle<DisclosureKnobs>
- Typed StyleX override: where the list sits and its
--disclosure-*knobs. layout- DisclosureLayout
Rest props go to <div> props.
layout- DisclosureLayout
open- boolean
- Controlled open state.
defaultOpen- boolean
- Default:
false - Initial open state when uncontrolled.
onOpenChange- (open: boolean) => void
- Called when the toggle, an arrow key or a find-in-page match opens or closes it.
leading- ReactNode
- Who the row is: a mark and a name. It stays when the row opens. A row with a
facehas none. face- ReactNode
- The row's face across the whole row, in place of
leading,detail,summaryandmeta: a meter row for a limit that opens. The whole face is the toggle and what it opens stands under it; the chevron stands on its first line, and the end of that line gives way to the row'sactionandopenAction. detail- ReactNode
- What the row shows of itself after its name (a meter). Gives way while open; a stacked row puts it on its second line.
summary- ReactNode
- What the row says, at its end (a value, a state). Gives way while open.
meta- ReactNode
- Quiet text in the end cell (when it resets): inside the toggle. Gives way while open.
action- ReactNode
- One control in the end cell, beside the toggle and after it in tab order (never nested in it). With
openActionit gives way while the row is open. openAction- ReactNode
- An action at the row's end, beside the toggle: it shows under the pointer, on keyboard focus in the row and while the row is open (where nothing hovers, while it is open). While it shows, what it covers gives way (the summary, the meta where no
actionstands, a face's end) instead of standing under it; it stands beforeaction, never on it. openSummary- ReactNode
- What the row says before
openActionwhile it shows, in place of the summary and meta it covers (a pool's count and its return). Words, not a control: a press on them reaches the toggle under them. end- ReactNode
- A control in the chevron's place, beside the toggle.
holdSummary- boolean
- Default:
false - The summary stays while open (a pool's count); a narrow list drops it.
label- string
- The toggle's accessible name, when its content is not words enough (a meter is no sentence).
stack- boolean
- Default:
false - On a narrow list a row with a detail, a meta or an action stacks its parts: who it is and its chevron, its detail and its meta, what it says, then its action.
disabled- boolean
- Default:
false keyshortcuts- string
children- ReactNode
- The panel: what the row summarised, in full. Find-in-page reaches it while closed, and opens it.
Rest props go to <div> props.
State machine
Resets Friday at 11:48.