prongs
GitHub

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

Component

Renders

<hr>

Profile

Comes from

starter
Read https://www.prongs.dev/docs/intents/layout/divider.md and tell me whether layout.divider fits what I am building.

Example

Preview

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.divider
  • Lines between the items of a list

    layout.list
  • Lines 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.rule

    A hairline in the colour that shows on the surface it is on

    border-0 bg-surface-border
  • 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

    m-0 h-auto shrink-0 grow-0 basis-px min-h-px min-w-px
    self-stretch
Final classes
border-0 bg-surface-border m-0 h-auto shrink-0 grow-0 basis-px
min-h-px min-w-px self-stretch
Definition
TS
'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',
},
],
},