radkradk

Settings Form

An account settings page with profile fields, notification toggles, and security options.

Settings

Manage your account preferences.

Profile
Update your personal information.
Notifications
Control how you receive notifications.

Receive emails about your account activity.

Receive emails about new features and updates.

Security
Manage your account security settings.

Add an extra layer of security to your account.

Installation

This block uses the following components. Add any you don't have yet:

npx radk add button card input label select separator switch

Usage

import { SettingsFormBlock } from "@/components/blocks/settings-form"
<SettingsFormBlock />

Source

The notification and security toggles use local state. Connect them to your backend by calling your update API inside the onCheckedChange handlers.