SegmentedControlProps
Represents the properties of the SegmentedControl component.
The SegmentedControl displays a horizontal set of mutually exclusive button segments, allowing the user to select one option at a time.
| Name | Type | Default | Description |
|---|---|---|---|
defaultValue? |
|
Sets the initially selected item value when the component is in uncontrolled mode (i.e., tsx
| |
items? |
|
Specifies the collection of items rendered as buttons inside the SegmentedControl. | |
itemTemplate? |
|
A custom render function for the item content. When provided, it replaces the default rendering (SVG icon + text span) entirely. Receives the full item configuration object and must return a React node. tsx
| |
layoutMode? |
|
|
Specifies the layout mode of the SegmentedControl.
|
onChange? |
|
Callback fired when a non-selected item is clicked and the selection changes.
Not triggered when the already-selected item is clicked.
Receives the tsx
| |
size? |
|
Sets the size of the SegmentedControl items. The value is mapped through | |
value? |
|
The currently selected item value.
When provided, the component operates in controlled mode and tsx
|