James Shopland

Toggle Group

Buttons 1

About

Here is Toggle Group component

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 { Toggle, ToggleButtonGroup } from "@/components/ui/toggle-group"

export default function ToggleGroupOrientation() {
  return (
    <ToggleButtonGroup orientation="vertical">
      <Toggle id="grid">Grid</Toggle>
      <Toggle id="list">List</Toggle>
      <Toggle id="gallery">Gallery</Toggle>
    </ToggleButtonGroup>
  )
}

Dependencies

More by James Shopland

View all
  • Tag Group [react-aria-components]

    Tag Group [react-aria-components]

    101
  • Date Range Picker [react-aria-components]

    Date Range Picker [react-aria-components]

    93
  • Grid List [react-aria-components]

    Grid List [react-aria-components]

    76
  • Switch [react-aria-components]

    Switch [react-aria-components]

    75
  • Select [react-aria-components]

    Select [react-aria-components]

    52
  • Range Calendar [react-aria-components]

    Range Calendar [react-aria-components]

    42
  • Popover

    Popover

    38
  • Menu

    Menu

    37

More in Buttons

View all
  • Button

    Button

    166
  • Texture Button

    Texture Button

    121
  • Button

    Button

    21
  • Figma File Button

    Figma File Button

    39
  • Native Button

    Native Button

    12
  • Button

    Button

    88
  • HeroUI Button Group

    HeroUI Button Group

    11
  • Great UI Button

    Great UI Button

    19