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

Renders

<span>

Profile

Example

Preview
Pack my box with five dozen liquor jugs.
<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

    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

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.

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

    Monospaced type

    font-mono text-sm
  • 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"

    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' }],
},