001
A row of options where the selected pill is a soft blob that stretches, splits and joins back up as it slides, and you can drag it straight to the one you want.
akasegmented control·tabs
Run this in any project set up for the shadcn CLI. It copies the Liquid Segments source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/liquid-segments.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { LiquidSegments } from "@/components/liquid-segments";
export default function Page() {
return <LiquidSegments />;
}A free React component in the Liquid collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Liquid Segments source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| optionsrequired | LiquidSegmentsOption<T>[] | — |
| value | T | — |
| defaultValue | T | — |
| onValueChange | (value: T) => void | — |
| size | "sm" | "default" | "default" |
| fullWidth | boolean | false |
| className | string | — |
| aria-label | string | — |