Settings Dialog
amarjay-ui/settings-dialogFreeBlock
A settings dialog with sidebar navigation and focused controls.
Live preview
live · rendered by the registry
Rendered by amarjay-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.amarjay.com/r/settings-dialog.jsonSource
1"use client"23import * as React from "react"4import {5 Bell,6 Check,7 Globe,8 Home,9 Keyboard,10 Link,11 Lock,12 Menu,13 MessageCircle,14 Paintbrush,15 Settings,16 Video,17 type LucideIcon,18} from "lucide-react"1920import {21 Breadcrumb,22 BreadcrumbItem,23 BreadcrumbLink,24 BreadcrumbList,25 BreadcrumbPage,26 BreadcrumbSeparator,27} from "@/components/ui/breadcrumb"28import { Button } from "@/components/ui/button"29import {30 Dialog,31 DialogContent,32 DialogDescription,33 DialogTitle,34 DialogTrigger,35} from "@/components/ui/dialog"36import {37 Sidebar,38 SidebarContent,39 SidebarGroup,40 SidebarGroupContent,41 SidebarMenu,42 SidebarMenuButton,43 SidebarMenuItem,44 SidebarProvider,45} from "@/components/ui/sidebar"46import { Switch } from "@/components/ui/switch"4748type Setting = {49 key: string50 title: string51 description: string52 defaultValue: boolean53}5455type SettingsSection = {56 name: string57 icon: LucideIcon58 description: string59 settings: Setting[]60}6162const sections: SettingsSection[] = [63 { name: "Notifications", icon: Bell, description: "Choose how and when you receive updates.", settings: [{ key: "push-notifications", title: "Push notifications", description: "Receive notifications for new activity.", defaultValue: true }, { key: "email-summary", title: "Email summary", description: "Get a daily summary of unread activity.", defaultValue: false }] },64 { name: "Navigation", icon: Menu, description: "Tune the way you move through your workspace.", settings: [{ key: "compact-navigation", title: "Compact navigation", description: "Use a denser navigation layout.", defaultValue: false }, { key: "remember-last-page", title: "Remember last page", description: "Return to the page you last visited.", defaultValue: true }] },65 { name: "Home", icon: Home, description: "Personalize what you see when you open the app.", settings: [{ key: "recent-items", title: "Show recent items", description: "Show recently opened content on your home screen.", defaultValue: true }, { key: "suggestions", title: "Show suggestions", description: "Show recommendations based on your activity.", defaultValue: true }] },66 { name: "Appearance", icon: Paintbrush, description: "Adjust your visual preferences.", settings: [{ key: "reduced-motion", title: "Reduce motion", description: "Limit non-essential animations.", defaultValue: false }, { key: "high-contrast", title: "High contrast", description: "Increase contrast for interface elements.", defaultValue: false }] },67// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from amarjay-ui
All 18 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Audio Playeraudio-player | amarjay-ui | Blocks | Free | 1 dep | |
| Chart Exampleschart-examples | amarjay-ui | Blocks | Free | 1 dep | |
| Image Comparison Sliderimage-comparison-slider | amarjay-ui | Blocks | Free | 1 dep |
