For **Admin panel only** projects, the login is `/`, the home page is `/dashboard`, and other panel pages omit the `/admin` prefix. Components use `@/components` and `@/components/ui`. API endpoints such as `/api/admin/users/export` keep their paths. Examples below use the combined public website + admin panel layout; generated standalone guides use the app's actual paths.

Install editable components and complete UI blocks into your Dinvolt project. Your application owns the installed source, so you can customize it directly.

## Choose a block

| Block | Target | Use it for |
| --- | --- | --- |
| `@dinvolt/admin-panel` | `admin` | Login, a protected sidebar, Home, Users, settings examples and action buttons. |
| `@dinvolt/public-actions` | `public` | Save, copy and delete buttons for public pages. |
| `@dinvolt/admin-spinner` | `admin` | A standalone SVG Spinner. |

Projects created with **Public website + admin panel** or **Admin panel only** already include the panel and spinner. The panel requires the generated Better Auth and tRPC/Query integrations; the other blocks do not require authentication.

See [Admin panel](/ui/admin-panel#admin-panel) for its pages and [Action components](/ui/actions#action-components) for usage examples.

## Install a block

Run this inside a compatible Dinvolt project. For public action buttons:

```sh npm
npx dinvolt ui add @dinvolt/public-actions --target public
```

```sh bun
bunx dinvolt ui add @dinvolt/public-actions --target public
```

```sh pnpm
pnpm dlx dinvolt ui add @dinvolt/public-actions --target public
```

```sh yarn
yarn dlx dinvolt ui add @dinvolt/public-actions --target public
```

For the admin panel:

```sh npm
npx dinvolt ui add @dinvolt/admin-panel --target admin
```

```sh bun
bunx dinvolt ui add @dinvolt/admin-panel --target admin
```

```sh pnpm
pnpm dlx dinvolt ui add @dinvolt/admin-panel --target admin
```

```sh yarn
yarn dlx dinvolt ui add @dinvolt/admin-panel --target admin
```

The legacy name `@dinvolt/admin-login` is still accepted as an alias for the admin panel.

## Add individual components

Use the same command for official shadcn/ui components:

```sh npm
npx dinvolt ui add button dialog --target public
```

```sh bun
bunx dinvolt ui add button dialog --target public
```

```sh pnpm
pnpm dlx dinvolt ui add button dialog --target public
```

```sh yarn
yarn dlx dinvolt ui add button dialog --target public
```

The combined public website + admin panel project has separate profiles and themes. Public-only and admin-only projects each have one profile:

| Project type                 | Target   | Primitives and actions  |
| ---------------------------- | -------- | ----------------------- |
| Public website only          | `public` | `@/components/ui`       |
| Public website + admin panel | `public` | `@/components/ui`       |
| Public website + admin panel | `admin`  | `@/components/admin/ui` |
| Admin panel only             | `admin`  | `@/components/ui`       |

Icons live in `@/components/icons` in all three project types. Only installed targets are available: an admin-only app cannot install a public block. Without `--target`, Dinvolt selects public for public-only projects and admin for either project type with a panel.

## Update installed code

New projects include `RadioGroupInline` / `RadioGroupInlineItem` from `radio-group-inline` and `RadioGroupCard` / `RadioGroupCardItem` from `radio-group-cards` in each area's UI directory, including with custom presets. Each area owns its editable copies and uses its selected theme.

Consider Inline for a few short options and Cards when options need titles and descriptions. Showing all choices removes the extra click to open a dropdown. With many options or limited space, a Select or searchable Combobox may fit better; this is a UX suggestion, not a fixed rule. Existing projects can add them with `npx dinvolt ui add radio-group-inline radio-group-cards --target public` (or `--target admin`).

Reinstalling an unchanged block does nothing. Customized, incomplete or conflicting blocks require manual review; `--overwrite` does not replace them.

Catalog changes affect future installations. Review and apply changes to existing application code yourself. See the [CLI reference](/reference/ui-add#dinvolt-ui-add) for installation options.

## Licenses

The panel adapts shadcn/ui's [login-05](https://ui.shadcn.com/blocks/login#login-05) and [sidebar-08](https://ui.shadcn.com/blocks/sidebar#sidebar-08) under MIT. Keep the installed license notices.

Nucleo icons retain their [separate license](https://nucleoapp.com/license/). Keep `src/components/icons/LICENSE.nucleo` with the icons.


## In this section

- <span id="admin-panel"></span><span id="open-the-panel"></span><span id="reuse-the-page-header"></span><span id="extend-a-data-table"></span><span id="keep-static-controls-visible"></span>[Admin panel](/ui/admin-panel): Sign in, manage users and extend the admin panel.
- <span id="action-components"></span><span id="show-a-pending-form-action"></span><span id="copy-text"></span><span id="confirm-a-deletion"></span>[Action components](/ui/actions): Add pending, copy and delete actions to your forms and pages.

