UI

What each element is for. Rendered by the components.

Rendered by

Added with

npx prongs add

Domains

Intents

Domains

Heading

heading.*

Titles that give a page its structure, from the marketing headline down to the title of one item.

<Text> · 6 intents

Text

text.*

Running text and the small pieces around it: introductions, captions, labels, facts about an item, code.

<Text> · 27 intents

Feedback

feedback.*

Messages about what just happened or is happening. They are announced to screen readers.

<Text> · 4 intents

Action

action.*

Commands, named for what they do: save, delete, share. With an href they render a link, without one a button.

<Action> · 27 intents

Moving around: the home link, pages of the site, views of the same content, steps of a flow.

<Action> · 10 intents

Choice

choice.*

Picking from a small set shown all at once: options for a setting, filters, colours.

<Action> · 4 intents

Field

field.*

What the user types or picks in a form. The intent sets the element, the input type, the input mode and autocomplete.

<Field> · 14 intents

Layout

layout.*

Page regions and groups. The intent picks the element (main, section, form, ul…) and the arrangement.

<Layout> · 80 intents

Media

media.*

Images that identify a person or illustrate content, with a text fallback when there is no image.

<Media> · 5 intents

Dialog

dialog.*

Modal interruptions built on the native <dialog>: a task, a confirmation, a full-screen reader.

<Dialog> · 5 intents

Popover

popover.*

Things that open next to the button that opened them without blocking the page: menus, pickers, extra detail.

<Popover> · 4 intents

Looks

The building blocks UI intents are made from: type, tone, surfaces, controls and arrangement. Code never uses them directly. Looks have no pages of their own; each is listed here with what it is built from and the intents built from it.

typography.*

tone.*

surface.*

control.*

input.*

arrange.*

constraint.*

frame.*

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.