# Settings in a panel

- **[App UI](/app/)**
- **[Settings](/app/settings/)**
- **Settings in a panel**

Plan, notifications, invoices and the danger zone stacked under one h1 in the app shell.

## Source

The screen as installed by the command above. Render it inside Theme, once near the root of your app.

in-a-panel.tsx

```
import AppBillingPlan, { spec as planSpec } from '@/components/klarhimmel/blocks/app-billing-plan';
import AppBillingInvoices, { spec as invoicesSpec } from '@/components/klarhimmel/blocks/app-billing-invoices';
import AppSettingsNotifications, { spec as notifSpec } from '@/components/klarhimmel/blocks/app-settings-notifications';
import AppSettingsDanger, { spec as dangerSpec } from '@/components/klarhimmel/blocks/app-settings-danger';
import { SidebarLayout } from '@/components/klarhimmel/ui/sidebar';

/** App blocks stacked on one settings screen in the app shell. SidebarLayout's content is a panel, so the blocks drop their page
 *  band, column and title size with no wrapper; outside the shell, wrap them in InPanel. */
export default function AppSettingsPanel() {
  return (
    <SidebarLayout focus className="w-full" bar={<h1 className="font-kh-display text-kh-heading font-semibold">Settings</h1>}>
      <div className="flex max-w-3xl flex-col gap-10 px-5 py-6 @md:px-8 @md:py-8">
        <AppBillingPlan props={{ ...planSpec.defaults, eyebrow: '' }} />
        <AppSettingsNotifications props={{ ...notifSpec.defaults, eyebrow: '' }} />
        <AppBillingInvoices props={{ ...invoicesSpec.defaults, eyebrow: '' }} />
        <AppSettingsDanger props={{ ...dangerSpec.defaults, eyebrow: '' }} />
      </div>
    </SidebarLayout>
  );
}
```

## Install

- **CLI**

  ```
  npx shadcn add https://ui.klarhimmel.com/r/app-billing-plan.json https://ui.klarhimmel.com/r/app-settings-notifications.json https://ui.klarhimmel.com/r/app-billing-invoices.json https://ui.klarhimmel.com/r/app-settings-danger.json
  ```

Uses

- SidebarLayout
- InPanel

- **About**: Plan, notifications, invoices and the danger zone stacked under one h1 in the app shell. Inside SidebarLayout app blocks fit on their own: no page band or column, headers at the in-app heading size, 1 rem to their content.
- **States**: The same blocks as on a page; only the placement changes. A page band (Block, BlockSurface) stays a page even inside the shell. New project? Set it up once: /get-started/installation.
