Toggle Group

A toggle button group allows a user to toggle multiple options, with single or multiple selection.

Installation

npx shadcn add https://hq-ui.vercel.app/r/nova/toggle-group

Preview

Examples

Outline

Use variant="outline" for an outline style.

toggle-group-outline

Size

Use the size prop to change the size of the toggle group.

toggle-group-sizes

Spacing

Use spacing to add spacing between toggle group items.

toggle-group-spacing

Vertical

Use orientation="vertical" for vertical toggle groups.

toggle-group-vertical

Disabled

toggle-group-disabled

Custom

A custom toggle group example.

toggle-group-font-weight-selector
Use font-normal to set the font weight.