# text.marker

The label an inspector shows on the element it points at: its intent. Starts at the element's left edge, or its right edge when the layout.marker has data-align="end"

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

## Example

```tsx
<Text intent="text.marker">Pack my box with five dozen liquor jugs.</Text>
```

## Choosing between neighbours

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

| If it is for… | Use |
|---|---|
| The label an inspector shows on the element it points at: its intent. Starts at the element's left edge, or its right edge when the layout.marker has data-align="end" | `text.marker` (this page) |
| An intent named in prose | [`text.code`](https://www.prongs.dev/docs/intents/text/code.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: [`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 text.marker 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
  ```

- `text.marker` (this page) — The label an inspector shows on the element it points at: its intent. Starts at the element's left edge, or its right edge when the layout.marker has data-align="end"

  ```
  pointer-events-none absolute bottom-full -left-px
  group-data-[align=end]:left-auto
  group-data-[align=end]:-right-px z-30 whitespace-nowrap
  bg-[color-mix(in_oklch,var(--info)_18%,var(--background))]
  px-1.5 py-px text-[11px] text-info ring-1 ring-info/70
  ```

Final classes

```
font-mono pointer-events-none absolute bottom-full -left-px
group-data-[align=end]:left-auto
group-data-[align=end]:-right-px z-30 whitespace-nowrap
bg-[color-mix(in_oklch,var(--info)_18%,var(--background))]
px-1.5 py-px text-[11px] text-info ring-1 ring-info/70
```

Definition

```ts
'text.marker': {
  kind: 'semantic',
  description: 'The label an inspector shows on the element it points at: its intent. Starts at the element\'s left edge, or its right edge when the layout.marker has data-align="end"',
  refs: ['typography.mono'],
  binding: {
    element: 'span',
    classes: 'pointer-events-none absolute bottom-full -left-px group-data-[align=end]:left-auto group-data-[align=end]:-right-px z-30 whitespace-nowrap bg-[color-mix(in_oklch,var(--info)_18%,var(--background))] px-1.5 py-px text-[11px] text-info ring-1 ring-info/70',
  },
  notFor: [{ context: 'an intent named in prose', instead: 'text.code' }],
},
```
