Invisible Docs
GalerieTokens

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

PropTypDefault
orientationstring: vertical | horizontal"vertical"
items *array—
floatingbooleanfalse
storageKeystring""
captionsbooleantrue
activeStylestring: surface | plain"surface"
appearancestring: default | featured"default"
paddingstring: standard | none | sm | md | lg | xl"standard"
marginstring: standard | none | sm | md | lg | xl"standard"
borderstring: standard | none | hairline | strong"standard"
radiusstring: standard | none | control | surface | pill"standard"
textColorstring""
backgroundColorstring""
shadowstring: standard | none | sm | md | lg"standard"
widthstring: standard | full"standard"
alignSelfstring: standard | start | center | end"standard"
anchorstring""

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