James Shopland

Toggle Button

Buttons

About

Here is Toggle Button component

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

Code

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

Usage.tsx

import { Italic } from "lucide-react"

import { Toggle } from "@/components/ui/toggle-button"

export default function ToggleLg() {
  return (
    <Toggle size="lg" aria-label="Toggle italic">
      <Italic className="size-4" />
    </Toggle>
  )
}

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