layout.divider
A break between two parts of the same content: groups in a menu, sections of a panel. Runs across whichever way its parent flows
Read https://www.prongs.dev/docs/intents/layout/divider.md and tell me whether layout.divider fits what I am building.Layout intents
Example
Above
Below
Before
After
<Layout intent="layout.divider" />Connections
Choosing between neighbours
If it is
Use
A break between two parts of the same content: groups in a menu, sections of a panel. Runs across whichever way its parent flows
layout.dividerLines between the items of a list
layout.listLines between controls side by side
layout.toolbar
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.divider 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.ruleA hairline in the colour that shows on the surface it is on
border-0 bg-surface-border
layout.dividerA break between two parts of the same content: groups in a menu, sections of a panel. Runs across whichever way its parent flows
m-0 h-auto shrink-0 grow-0 basis-px min-h-px min-w-px self-stretch
border-0 bg-surface-border m-0 h-auto shrink-0 grow-0 basis-px min-h-px min-w-px self-stretch
'layout.divider': {
kind: 'semantic',
description: 'A break between two parts of the same content: groups in a menu, sections of a panel. Runs across whichever way its parent flows',
refs: ['surface.rule'],
binding: {
element: 'hr',
classes: 'm-0 h-auto shrink-0 grow-0 basis-px min-h-px min-w-px self-stretch',
},
notFor: [
{ context: 'lines between the items of a list', instead: 'layout.list' },
{
context: 'lines between controls side by side',
instead: 'layout.toolbar',
},
],
},