Skip to content

Segmented

Open .md
Live preview

Loading example…

Exclusive selector for 2-4 options. type="single" gives Radix the radiogroup role.

import { Segmented } 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.

This component declares no props of its own.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/navigation/segmented/segmented.tsx