Forms and controls
SegmentedControl
No summary has been written for SegmentedControl. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.Public export
typescript
import { SegmentedControl } from '@happyvertical/smrt-ui/forms';- Import path
@happyvertical/smrt-ui/forms- Props
- 11
- Props described
- 11 of 11
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
density'comfortable' | 'touch'NoTarget density; omit to inherit the ThemeProvider setting.optionsSegmentedControlOption[]YesThe available segments and their values.valuestring | numberNoThe currently selected option value.labelstringYesAccessibility label for the control.namestringNoForm field identifier.requiredbooleanNoRequires an enabled option to be selected before native form submission.disabledbooleanNoBlocks interaction and submission of this control.fullWidthbooleanNoMakes the control stretch to full container width.interactionControlInteractionOptions | falseNoRegisters this control for agent interaction; omit or pass false to exclude.onvaluechange(value: string | number) => voidNoFired when the selected segment changes.classstringNoAdditional CSS class names.Bindable state
This component has no bindable public state.
Callback events
onvaluechange(value: string | number) => void