Clevision

Switch

Forms 1

About

Here is Switch component

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

Code

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

Usage.tsx

import { Switch } from '@/components/ui/switch'

const SwitchMiniDemo = () => {
  return (
    <Switch
      aria-label='Mini switch'
      className='[&_span]:border-input h-3 border-none [&_span]:size-4.5 [&_span]:border'
    />
  )
}

export default SwitchMiniDemo

More by Clevision

View all
  • Calendar

    Calendar

    110
  • Card Studio

    Card Studio

    106
  • Collapsible

    Collapsible

    43
  • Button Group

    Button Group

    39
  • Buttons

    Buttons

    34
  • Waitlist 01

    Waitlist 01

    33
  • Combobox

    Combobox

    32
  • Logo Cloud

    Logo Cloud

    31

More in Forms

View all
  • Premium Auth

    Premium Auth

    555
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    17
  • Authentication Card

    Authentication Card

    51
  • Book A Demo 1

    Book A Demo 1

    87
  • Login 1

    Login 1

    61
  • SignInPage

    SignInPage

    736
  • Login Card

    Login Card

    33