bx

Toggle Group

A set of two-state buttons that can be toggled on or off.

tsx
// src/components/ui/toggle-group.tsx — a row of Toggle buttons. Add data-ui="toggle" to each;
// for single-select, scope them in a wrapper and clear siblings in the island.

Installation

Terminal
$ bext ui add toggle-group
Try it live
Open in play

Edit this component live in the bext playground. The PRISM + signals version is the bext-native idiom — fine-grained reactivity, no virtual DOM.

src/app/page.tsx 2 files · signals · runs in your browser
Pure PRISM + real bext signals — fine-grained, no re-render.