Glass Toggle Group
A segmented control with a sliding glass puck indicator. Supports icons, text, or any React content.













MonthlyQuarterlyYearly
Contacts
Calls
Chats
Profile
import { useState } from "react"
import {
AlignCenterIcon,
AlignLeftIcon,Installation
$ npx shadcn add @glasscn/glass-toggle-groupVariants
default
MonthlyQuarterlyYearly
Contacts
Calls
Chats
Profile
API
Prop
Type
Default
Description
GlassToggleGroup
valuestring-The controlled value of the selected item.
GlassToggleGroup
defaultValuestring-The default value for uncontrolled usage.
GlassToggleGroup
onValueChange(value: string) => void-Callback fired when the selected value changes.
GlassToggleGroupItem
valuestring-The unique value for this item.
GlassToggleGroupItem
childrenReact.ReactNode-The content to display (icon, text, or any React element).