Icon Rail — component.icon-rail
Narrow vertical (or horizontal) strip of icon-only buttons — the tool rail of an editor shell. One item is active; the consumer switches panels on click via the data-rail-item attribute. Content stays data-driven through the items prop. 1.4.0 opt-in: floating (schwebend, am Griff verschiebbar, Posit
Componentv1.7.0Desktopweb.applicationdesktop.shellbuilder.preview
Beispiele
Editor tool rail (blocks active)
Horizontal
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
orientation | string: vertical | horizontal | "vertical" |
items * | array | — |
floating | boolean | false |
storageKey | string | "" |
captions | boolean | true |
activeStyle | string: surface | plain | "surface" |
appearance | string: default | featured | "default" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Genutzte Design-Tokens
border.hairline color.action.primary color.border.subtle color.surface.default color.surface.selected color.surface.sunken color.text.default color.text.muted duration.fast easing.standard elevation.overlay gradient.brand-subtle leading.tight radius.control radius.full radius.surface size.1 size.12 size.16 size.2 size.3 size.4 size.6 size.9 text.2xs text.xs weight.medium weight.semibold