Block

Settings.

A settings page with a section nav that turns into a select on phones: profile, hub site address and visibility, notification switches and a danger zone with a confirm dialog. Saving shows a toast.

Installation#

$npx lanterncn add settings

This copies all 2 files into components/settings and installs every component it uses. With the shadcn CLI: npx shadcn@latest add httptim/lantern-ui/settings.

Usage#

Render it from any page.

import Settings from "@/components/settings/settings";

export default function Page() {
  return <Settings />;
}

Toasts need the Toaster from the sonner component mounted once in your root layout.