# layout.registry.entry

One intent in a layout.registry; data-active on the one the demo points at

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

## Example

```tsx
<Layout intent="layout.registry.entry">
  …
</Layout>
```

## Choosing between neighbours

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

| If it is for… | Use |
|---|---|
| One intent in a layout.registry; data-active on the one the demo points at | `layout.registry.entry` (this page) |

## 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: [`typography.mono`](https://www.prongs.dev/docs/intents/ui.md#typography-mono)

## For registry authors

**Starter intents.** These are the intents `prongs add` puts in your registry, shown in this site’s theme. Yours are your own `registry.ts`: 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.registry.entry 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.

- [`typography.mono`](https://www.prongs.dev/docs/intents/ui.md#typography-mono) — Monospaced type

  ```
  font-mono text-sm
  ```

- `layout.registry.entry` (this page) — One intent in a layout.registry; data-active on the one the demo points at

  ```
  w-full whitespace-pre px-7 py-4 text-xs leading-6 opacity-35
  transition-[opacity,background-color] duration-500
  data-[active]:bg-[linear-gradient(to_right,color-mix(in_oklch,var(--foreground)_7%,transparent),color-mix(in_oklch,var(--foreground)_2%,transparent))]
  data-[active]:opacity-100
  data-[active]:[&>span:nth-child(-n+3)]:text-foreground!
  ```

Final classes

```
font-mono w-full whitespace-pre px-7 py-4 text-xs leading-6
opacity-35 transition-[opacity,background-color] duration-500
data-[active]:bg-[linear-gradient(to_right,color-mix(in_oklch,var(--foreground)_7%,transparent),color-mix(in_oklch,var(--foreground)_2%,transparent))]
data-[active]:opacity-100
data-[active]:[&>span:nth-child(-n+3)]:text-foreground!
```

Definition

```ts
'layout.registry.entry': {
  kind: 'semantic',
  description: 'One intent in a layout.registry; data-active on the one the demo points at',
  refs: ['typography.mono'],
  binding: {
    classes: 'w-full whitespace-pre px-7 py-4 text-xs leading-6 opacity-35 transition-[opacity,background-color] duration-500 data-[active]:bg-[linear-gradient(to_right,color-mix(in_oklch,var(--foreground)_7%,transparent),color-mix(in_oklch,var(--foreground)_2%,transparent))] data-[active]:opacity-100 data-[active]:[&>span:nth-child(-n+3)]:text-foreground!',
  },
},
```
