Sean Hello

ReUI Switch

Component

About

ReUI Switch with the first 10 official ReUI examples, preserved from the MIT-licensed source registry.

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

Code

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

Usage.tsx

import { HelpCircleIcon } from "lucide-react"
import { Field, FieldLabel } from "@/components/ui/reui-switch-utils/field"
import { Switch } from "@/components/ui/reui-switch"
import {
  Tooltip,
  TooltipContent,
  TooltipTrigger,
} from "@/components/ui/reui-switch-utils/tooltip"

export default function Pattern() {
  return (
    <div className="flex items-center justify-center">
      <Field orientation="horizontal">
        <Switch id="sw-tooltip" />
        <div className="flex items-center gap-1.5">
          <FieldLabel htmlFor="sw-tooltip">
            Two-factor authentication
          </FieldLabel>
          <Tooltip>
            <TooltipTrigger className="text-muted-foreground">
              <HelpCircleIcon className="size-3.5" aria-hidden="true" />
            </TooltipTrigger>
            <TooltipContent side="right">
              Adds an extra layer of security by requiring a verification code
              on login.
            </TooltipContent>
          </Tooltip>
        </div>
      </Field>
    </div>
  )
}

Dependencies

More by Sean Hello

View all
  • 3D Testimonails

    3D Testimonails

    3.3K
  • Line Charts 9

    Line Charts 9

    637
  • Alert

    Alert

    492
  • Area Charts 1

    Area Charts 1

    385
  • Line Charts 6

    Line Charts 6

    384
  • Scroll Area

    Scroll Area

    376
  • Area Charts 2

    Area Charts 2

    317
  • Navigation Menu

    Navigation Menu

    305