layout.registry.entry
One intent in a layout.registry; data-active on the one the demo points at
Layout intents
Example
One
Two
Three
<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
Use
One intent in a layout.registry; data-active on the one the demo points at
layout.registry.entrythis 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
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.monoMonospaced type
font-mono text-sm
layout.registry.entryOne 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!
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!
'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!',
},
},