Tray
import { Tray, TrayHeader, TrayTitle, TrayBody, TrayFooter, TrayOption, TrayStep, TrayAnswer } from "@arcadia/ui";Questions
Should variance use the population or the sample formula?
Tray
nesting- "contained-object"
- Mark an independent tray contained in another surface. A tray docked beside the composer needs no mark.
placement- "above" | "below" | "drop"
- Default:
"above" - Which side of the composer it docks to.
aboverises from below;belowdrops from above.drophangs under the box it stands in with the composer (a positioned dock), over what follows, a popup's shadow under it, so the page under the composer does not move (a home page's pickers). motion- "enter" | "static"
- Default:
"enter" enter: 120ms rise + fade on mount, 90ms fade on close. Only event-driven trays animate (a question or approval arriving, a message queued).static: appears and leaves instantly: hydrated trays and the+,/and@pickers, which open at once.open- boolean
- Omit to mount and unmount the tray yourself (no exit motion). Pass it to let the tray keep itself mounted for its exit fade (
data-exiting,inert) and unmount afterwards. rootStyle- RootStyle<TrayKnobs>
- Typed StyleX override: where the tray sits (layout) and its
--tray-*knobs.
Rest props go to <div> props and render.
subtitle- ReactNode
- Muted continuation or reset text under the title. Omit it when there is no second line.
actions- ReactNode
- An inline remedy after the title and before Dismiss. Put multiple recovery actions in TrayFooter.
onDismiss- () => void
- Pass only if this tray can be dismissed. Called by the named Dismiss button; the caller owns its effect.
dismissDisabled- boolean
- Default:
false - The Dismiss button is disabled: drawn, not pressable.
dismissProps- ButtonAttrs
- The caller's own marks on the Dismiss button: its
data-*and an accessible name, never a class, a style or a handler.
Rest props go to <div> props and render.
wrap- boolean
- Default:
false - Wrap complete notice copy instead of cutting it to one line.
Rest props go to <span> props and render.
layout- "rows" | "text"
- Default:
"rows" rows: ListRows / TrayOptions inset 6px.text: prose aligned with the header text.glide- boolean
- Default:
false - One highlight that glides between the rows (a picker's
+,/or@list); see Glide.
Rest props go to <div> props and render.
divided- boolean
- Default:
false - Hairline above the footer.
start- ReactNode
- Left-aligned group (a pager, a hint, a text button on the text column); the children stay at the end.
Rest props go to <div> props and render.
kind- "single" | "multiple"
- Default:
"single" single: a lettered/numbered badge,role="radio".multiple: a checkbox,role="checkbox".badge- ReactNode
- Badge content for
single("1", "A", or an Icon for "Other"). selected- boolean
- Default:
false label- ReactNode
- The option text (or pass it as children).
description- ReactNode
- Quieter text after the label (text-3).
readOnly- boolean
- Default:
false - Shown, not asked: nothing to press.
disabled- boolean
- Default:
false - Text-4, not selectable.
Rest props go to <button> props and render.
steprequired- number
- The step that shows, counted from 0. A change enters from the side it came from.
Rest props go to <div> props and render.
questionrequired- ReactNode
- The question, as it was put.
answerrequired- ReactNode
- What the person chose, or the words they gave.
Rest props go to <div> props and render.
State machine
Deploy to production
Which branch should the agent deploy?