# layout.locked

A feature the current plan does not include, with how to get it: what it does and an action.upgrade

Component: [`<Layout>`](https://www.prongs.dev/docs/components/layout.md) · Renders: `<div>` · Profile: [UI](https://www.prongs.dev/docs/intents/ui.md) · Comes from: [SaaS pack](https://www.prongs.dev/docs/intents/packs/saas.md)

## Example

```tsx
<Layout intent="layout.locked">
  <Text intent="text.label">Audit log is on the Team plan</Text>
  <Action intent="action.upgrade" href="/billing">Upgrade to Team</Action>
</Layout>
```

## Choosing between neighbours

Find the row that describes your element, and use the intent on the right.

| If it is for… | Use |
|---|---|
| A feature the current plan does not include, with how to get it: what it does and an action.upgrade | `layout.locked` (this page) |
| A message about the page or the account | [`layout.notice`](https://www.prongs.dev/docs/intents/layout/notice.md) |

## Connections

Declared in the registry, both directions. Where an intent is used in your own code is something check and the gallery see; this site has no app code.

- Built from: [`surface.notice`](https://www.prongs.dev/docs/intents/ui.md#surface-notice), [`arrange.stack`](https://www.prongs.dev/docs/intents/ui.md#arrange-stack)

## For registry authors

**Pack intent.** `prongs add saas` puts the saas pack’s intents in your registry. They are then yours like the starter intents: rename, restyle and add to them, and see them with `prongs add gallery`.

What this intent is built from and its entry in `components/prongs/registry.ts`. You only need this to change how it looks or to add an intent like it.

How layout.locked resolves, and its definition

Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.

- [`surface.notice`](https://www.prongs.dev/docs/intents/ui.md#surface-notice) — Recessed, bordered strip

  ```
  surface-inset rounded-lg border border-surface-border
  ```

- [`arrange.stack`](https://www.prongs.dev/docs/intents/ui.md#arrange-stack) — Children in a column, free to shrink inside a row or grid

  ```
  flex min-w-0 flex-col
  ```

- `layout.locked` (this page) — A feature the current plan does not include, with how to get it: what it does and an action.upgrade

  ```
  items-start gap-3 p-4
  ```

Final classes

```
surface-inset rounded-lg border border-surface-border flex
min-w-0 flex-col items-start gap-3 p-4
```

Definition

```ts
'layout.locked': {
  kind: 'semantic',
  description: 'A feature the current plan does not include, with how to get it: what it does and an action.upgrade',
  refs: ['surface.notice', 'arrange.stack'],
  binding: { classes: 'items-start gap-3 p-4' },
  notFor: [
    {
      context: 'a message about the page or the account',
      instead: 'layout.notice',
    },
  ],
},
```
