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

import { BellIcon, MailIcon, SmartphoneIcon } from "lucide-react"
import { Card } from "@/components/ui/reui-switch-utils/card"
import {
Field,
FieldGroup,
FieldLabel,
FieldTitle,
} from "@/components/ui/reui-switch-utils/field"
import { Separator } from "@/components/ui/reui-switch-utils/separator"
import { Switch } from "@/components/ui/reui-switch"
export default function Pattern() {
return (
<Card className="w-full max-w-xs p-0">
<FieldGroup className="gap-0">
<Field>
<FieldLabel className="justify-between px-4 py-3">
<FieldTitle className="flex items-center gap-2">
<BellIcon className="size-4 opacity-60" aria-hidden="true" />
Push notifications
</FieldTitle>
<Switch defaultChecked />
</FieldLabel>
</Field>
<Separator />
<Field>
<FieldLabel className="justify-between px-4 py-3">
<FieldTitle className="flex items-center gap-2">
<MailIcon className="size-4 opacity-60" aria-hidden="true" />
Email notifications
</FieldTitle>
<Switch />
</FieldLabel>
</Field>
<Separator />
<Field>
<FieldLabel className="justify-between px-4 py-3">
<FieldTitle className="flex items-center gap-2">
<SmartphoneIcon className="size-4 opacity-60" aria-hidden="true" />
SMS notifications
</FieldTitle>
<Switch />
</FieldLabel>
</Field>
</FieldGroup>
</Card>
)
}







