SegmentedItem
Loading example…
SegmentedItem is part of the Navigation set, imported from @jcsoftdev/ui/navigation.
Import
Section titled “Import”import { SegmentedItem } from "@jcsoftdev/ui/navigation";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/navigation/segmented.
export const Default: Story = {};Source of the Storybook story.
| Prop | Type | Default | Description |
|---|---|---|---|
value * |
string |
||
intent |
string |
||
intentKey |
string |
* marks a required prop.
It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).
Storybook stories
Section titled “Storybook stories”- Default
- Deselectable
- Disabled
- Two Options
- One Item Disabled
- Controlled
- Narrow
- From Options
- Block Without Deselect
Source
Section titled “Source”packages/ui/src/navigation/segmented/segmented.tsx