Brutal segmented control
One thick ink frame split by ink lines, with a solid block for your choice.
Customize
Props
Size
Installation
npx shadcn@latest add https://skinsui.dev/r/segmented-brutal.jsonUsage
usage.tsx
import { SegmentedControl } from "@/components/skins/segmented-brutal";<SegmentedControl options={[ "Day", "Week", "Month", "Year", ]} defaultValue="Week" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| options | array | None | The choices, in order. Two to five short words work best. |
| defaultValue | string | None | The choice picked when it first renders. The first one if you leave it out. |
| size | "sm" | "md" | "md" | 32 or 40 pixels tall. |
| onValueChange | () => void | None | Called with the new choice whenever it changes. |
- optionsNone
arrayThe choices, in order. Two to five short words work best.
- defaultValueNone
stringThe choice picked when it first renders. The first one if you leave it out.
- size"md"
"sm" | "md"32 or 40 pixels tall.
- onValueChangeNone
() => voidCalled with the new choice whenever it changes.