import { SettingsToggleRow } from "@/components/atom/settings-toggle-row"
export default function SettingsToggleRowDemo() {
return (
<>
<div className="w-full max-w-md">
<SettingsToggleRow
label="Notifications"
description="Receive email notifications"
/>
</div>
</>
)
}
pnpm dlx shadcn@latest add @codebase/settings-toggle-row
import { SettingsToggleRow } from "@/components/atom/settings-toggle-row"<SettingsToggleRow
label="Notifications"
description="Receive email notifications"
/>Receive updates
Mobile notifications
<SettingsToggleRow label="Email" description="Receive updates" defaultChecked />
<SettingsToggleRow label="Push" description="Mobile notifications" />Receive email notifications