James Shopland

Toggle Group

Buttons 6

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 ToggleGroupDemo() {
  return (
    <ToggleButtonGroup defaultSelectedKeys={["left"]}>
      <Toggle id="left">Left</Toggle>
      <Toggle id="center">Center</Toggle>
      <Toggle id="right">Right</Toggle>
    </ToggleButtonGroup>
  )
}

Dependencies

More by James Shopland

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

    Tag Group [react-aria-components]

    102
  • 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
  • Menu

    Menu

    39
  • Popover

    Popover

    38

More in Buttons

View all
  • Button

    Button

    172
  • Texture Button

    Texture Button

    122
  • Button

    Button

    22
  • Button

    Button

    89
  • Button Group

    Button Group

    1
  • Button Group

    Button Group

    6
  • Button

    Button

    54
  • Native Button

    Native Button

    17