Skip to content
tcpsystemsui

Theme

Colour scheme
Accent
Density
Radius
Esc

RailToggle

A button that collapses or expands the navigation rail and remembers the state.

beta

API

Import
import RailToggle from '@tcpsystems/ui/foundation/RailToggle';
PropTypeDefault
collapsed?booleanfalse
collapseLabel?string'Collapse navigation'
expandLabel?string'Expand navigation'
HookKind
.tcp-rail-toggleRoot class
data-collapse-labelData attribute
data-expand-labelData attribute
data-icon-onlyData attribute
data-sizeData attribute
data-variantData attribute