# View Customizer block

> Inset right view customizer sheet with quick toggles and layout mode picker

Floating right sheet to customize a workspace view: Switch toggles plus a RadioGroup of layout cards with SVG skeleton previews and a hint Tooltip. shadcn Sheet, Field, Switch, RadioGroup, ScrollArea. Settings panel, preferences drawer.

- Type: Pro block
- Category: [Sheet](https://web.dev.reui.io/blocks/application/sheet.md)
- Page: https://web.dev.reui.io/blocks/application/sheet/sheet-6
- Docs (Base UI): https://ui.shadcn.com/docs/components/base/sheet.md
- Docs (Radix UI): https://ui.shadcn.com/docs/components/radix/sheet.md
- MCP: `get_block("sheet-6")`
- Built with: Button, Field, Radio Group, Scroll Area, Sheet, Switch, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A roadmap view's 4 switches and 2 layout radio cards drawn as SVG thumbnails, with a layout hint tooltip and Reset to the defaults

## Agent notes

- The Save button is only a `SheetClose`, so `toggleState` and `layoutId` are never persisted; send them to your preferences API on save
- `LayoutSkeletonPreview` switches on `isCommandDeck` between 2 drawings, so a 3rd layout in `VIEW_LAYOUT_OPTIONS` needs its own SVG
- `VIEW_QUICK_TOGGLES` ids come from the `ViewQuickToggleId` union and key `toggleState`; a new toggle means extending that union

## When not to use

- Labeled settings rows with selects, a text field and a submit that saves them: use [Relay Settings](https://web.dev.reui.io/blocks/application/sheet/sheet-8.md) (`get_block("sheet-8")`)

## Install

```bash
npx shadcn@latest add @reui/sheet-6
```

## About Sheet blocks

### When to use

- Record detail opened over a list or table: a ticket, metric, cron job, audit event, deploy, SLO or data source
- Create and edit forms in a side panel for a project, cron job, firewall rule, SLO or data connection
- Utility panels for help guides, keyboard shortcuts, an AI assistant, comments, notifications or view settings

### When not to use

- A bare side panel with your own header, body and footer, nothing prebuilt: use [Sheet](https://web.dev.reui.io/components/sheet.md) (`get_component("sheet")`)
- A persistent sidebar or navigation layout that stays around every page: use the [App Shell blocks](https://web.dev.reui.io/blocks/application/app-shell.md)
- An assistant conversation that fills the whole page rather than a side panel: use the [AI Chat blocks](https://web.dev.reui.io/blocks/ai-agents/ai-chat.md)

### Agent notes

- Each root renders a demo `SheetTrigger` button and opens on mount via `defaultOpen` or a `useState` seeded true; start it closed in your app
- Each `SheetContent` className floats it inset with `inset-y-4`, `right-4` and `rounded-xl` and sets its own width; resize it there, not in the primitive
- Each page.tsx only centers the trigger in a `min-h-svh` main with an `sr-only` h1; render the root component alone inside your page

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
