RailToggle
A button that collapses or expands the navigation rail and remembers the state.
beta
API
import RailToggle from '@tcpsystems/ui/foundation/RailToggle';| Prop | Type | Default |
|---|---|---|
collapsed? | boolean | false |
collapseLabel? | string | 'Collapse navigation' |
expandLabel? | string | 'Expand navigation' |
| Hook | Kind |
|---|---|
.tcp-rail-toggle | Root class |
data-collapse-label | Data attribute |
data-expand-label | Data attribute |
data-icon-only | Data attribute |
data-size | Data attribute |
data-variant | Data attribute |