Section rail
import { SectionRail, useSectionSpy } from "@arcadia/ui";SectionRail
itemsrequired- readonly SectionRailItem[]
- The view's sections, in order. Fewer than two draw nothing.
labelrequired- string
- The rail's name, shown over it and heard as the navigation's name: "On this page".
showLabel- boolean
- Default:
true false: the name is heard only (a rail folded under a lead that already says it).currentrequired- string | null
- The id of the section the reader is in now, from
useSectionSpy;nullwhen none is known. onJump- (id: string, from: SectionRailFrom) => void
- A row was chosen: jump there (
useSectionSpy'sjump). Left out, every row is a plain link to#id. rail- boolean
- Default:
true false: no line and no thumb; the current row is told by its ink alone (a rail folded under a lead, a page with no script).rootStyle- RootStyle
- Typed StyleX override: layout only (where it stands, sticky, its height).
Rest props go to <nav> props.