Report a problem or share feedback← Catalog
Rubber Segment
freereact-bits/rubber-segment
Segmented control with a rubber thumb: taps stretch it across the gap and squash it onto the target, and you can grab, drag and flick it between slots.
$
npx shadcn@latest add @react-bits/RubberSegment-TS-TWnpm deps: motion
- Source
- React Bits
- Kind
- component
- Categories
- misc
- Use as
- drop-in — replaces your component
- Applies to
- misc
- Motion
- on state, press, drag · subtle · motion · medium cost · respects reduced motion
- Tags
- micro, motion
- Licence
- MIT + Commons Clause: free to use in commercial apps/sites, but you may not sell or redistribute the components themselves (alone, bundled, or ported). React Bits Pro is a separate paid product.
- Live demo
- www.reactbits.dev
- Docs
- www.reactbits.dev
Similar
Compare all 4 →- Slide Commitreact-bits/slide-commitSlide-to-confirm handle that plants with a spinner while your action runs, unfurls into a done pill on success and springs home with a squash and shake on failure.
- Spring Checkreact-bits/spring-checkCheckbox row where a single spring fills the box, draws the tick, strikes the label and dims the words in one press.
- Expandable Controlbeui/expandable-controlClick-to-expand button and chip controls that reveal a label or trailing action through spring layout continuity.