Sean Hello

Toggle Group

Buttons 16

About

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

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Toggle Group to your project and fits it to your theme.

Code

How Toggle Group is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group-1';

export default function TabsDemo() {
  return (
    <ToggleGroup type="multiple" variant="outline" defaultValue={['1W', '1M']}>
      <ToggleGroupItem value="1D">1D</ToggleGroupItem>
      <ToggleGroupItem value="1W">1W</ToggleGroupItem>
      <ToggleGroupItem value="1M">1M</ToggleGroupItem>
      <ToggleGroupItem value="6M">6M</ToggleGroupItem>
      <ToggleGroupItem value="1Y">1Y</ToggleGroupItem>
    </ToggleGroup>
  );
}

Dependencies

More by Sean Hello

View all
  • 3D Testimonails

    3D Testimonails

    3.7K
  • Line Charts 9

    Line Charts 9

    724
  • Alert

    Alert

    510
  • Line Charts 6

    Line Charts 6

    416
  • Area Charts 1

    Area Charts 1

    409
  • Scroll Area

    Scroll Area

    381
  • Navigation Menu

    Navigation Menu

    355
  • Statistics Card 7

    Statistics Card 7

    334

More in Buttons

View all
  • Button Group

    Button Group

    4
  • Button

    Button

    20
  • Texture Button

    Texture Button

    111
  • Button

    Button

    4
  • Hero Button

    Hero Button

    23
  • Button

    Button

    143
  • Astryx Chat Send Button

    Astryx Chat Send Button

    5
  • Button Group

    Button Group