Set
Flush
One alignment. The group is one object.
One pressed at a time. Joined hairlines.
Flush
One alignment. The group is one object.
npx @noordvc/raster-cli add toggle-group
<div class="rs-toggle-group"><button class="rs-toggle" aria-pressed="true">Left</button><button class="rs-toggle" aria-pressed="false">Center</button><button class="rs-toggle" aria-pressed="false">Right</button></div>
import { ToggleGroup } from "@/components/raster/toggle-group";
<ToggleGroup
options={[
{ value: "left", label: "Left" },
{ value: "center", label: "Center" },
{ value: "right", label: "Right" },
]}
value={align}
onValueChange={setAlign}
/>