Styles

The styles of the UI dialect: the kinds of thing a layout is made of. A layout names a style and follows it with what that face needs, in any order: a label for the code (total: before the style), texts (a string, a text per language, or a quoted word of the dictionary), handlers (on-change [...]), react, is and calc, and what the style takes, which each style below lists: a field name (the first word after an input style), an icon (#search), words of the dialect (see the words of the dialect), values, and blocks (the children of a container, the items of a choice or a menu). A block no entry takes is the action, the block at the end. What a style does not take is a problem of the layout: field name poster %p.png says “poster is not a word of field”.

Each style is made from another and takes what that one takes, and more: face is where every style starts, container, input and rows-face are made from it, and no layout writes these four. stylize makes a style of your own the same way, with a takes: block of its own; see styles of your own.

face

Styles are made from it; a layout never writes it.

Every face takes:

  • an issue (icon): an icon before the text, one of those Trebol brings

  • one of primary, accent, danger, success, warning, muted (role): how it stands out

  • one of small, medium, large (size): how wide or tall it is

  • width and one of small, medium, large, fill (size): how wide it is: width small, or fill

  • one of left, center, right, spread (align): where its children go across

  • fill: as wide as it can be

  • fit: takes the height the window has left; what it holds scrolls inside

  • hidden: not shown

  • disabled: shown, but it cannot be used

  • inert: shown as it is, but neither it nor what it holds can be used

  • narrow-only: shown only on a narrow screen

  • wide-only: hidden on a narrow screen

  • drag: can be dragged

  • drop: takes what is dropped on it

  • reorder: its children or rows can be moved around

  • menu and a block: its context menu, or the menu a button opens

  • morph and a lit-word or a block: a name shared with a face of the next screen, which this one becomes

  • with and a block: a block run bound to the face once it is read: the last way out, for a field nothing else sets

  • rate and an integer or a time: ticks while shown, each firing on-time: rate 2 is twice a second, rate 0:00:30 every half minute

It fires on-over, on-dbl-click, on-key, on-focus, on-unfocus, on-menu, on-select, on-drop, on-reorder, on-time.

What every face is and takes. Its last way out, with [...], runs a block bound to the face once it is read, to set a field no word sets: use it when nothing else does, since check and a designer cannot see into it.

container

Made from face. Styles are made from it; a layout never writes it.

It takes what face takes, and:

  • pad and an integer or a word: the space inside it, a step from 0 to 7, none or wide

  • gap and an integer or a word: the space between its children, a step from 0 to 7, none or wide

  • a block (pane): the faces it holds

What a face that holds others takes: its children, and the spacing around and between them.

input

Made from face. Styles are made from it; a layout never writes it.

It takes what face takes, and:

  • a word, right after the style (name): the field’s name: the key of its value in values

  • readonly: shown and sent, but not changed, and no rule applies

  • required: it must have a value

  • match and a word: another field its value must be the same as

  • check and a block: a block that says whether the value is good

  • check-async and a block: a check that asks a server

  • a rule made with rule: a rule a program adds with rule

It fires on-change.

What a face that holds a value of a form takes: its name, its rules, readonly.

rows-face

Made from face. Styles are made from it; a layout never writes it.

It takes what face takes, and:

  • a word, right after the style: the word that labels it: table clients is clients: table

  • a block (columns): the field of each column and its header

  • key and a word: the field that tells one row from another

  • role-by and a word: the field of a row whose value, success or danger, is the role the row is painted in

What a face that shows rows takes: its columns, and the field that tells rows apart.

view

Made from container.

It fires on-find.

The whole page: its children one under another. view [...] shows it; words before its first face (a width, on-key) are the view’s own.

column

Made from container.

It takes what container takes, and:

  • rail: its children go down a line, each with a mark on it: steps, or what happened one after another

  • named: one part of the page, named by its first text or heading for a screen reader

Children one under another.

row

Made from container.

It takes what container takes, and:

  • one of top, middle, bottom (valign): where its children go up and down

Children side by side, wrapping onto the next line when they do not fit. With fields in it, they line up on their controls; top, middle and bottom line them up otherwise. On a phone, a row with fields stacks them.

form

Made from container.

A form: its fields, with their labels beside them on a wide screen and above them on a narrow one. Its fields are checked together, and its submit runs only when all of them are valid, with their values.

panel

Made from container.

A group on a raised background, with a title when it is given a text.

grid

Made from container. Fields of its own: resize: none.

It takes what container takes, and:

  • an integer (cols): how many columns

  • a block (cols): the weight of each column, [1 4 1], or small, medium or large for one as wide as the theme says

  • resize: a handle between two columns makes one wider; the browser keeps the widths

Columns: grid 3 [...] gives three equal ones, grid [1 4 1] [...] the weight of each, and small, medium or large in that block a column of a fixed width the theme sets (grid [small 1 small]). On a narrow screen, as many as fit, down to one.

scroll

Made from container.

An area with a scroll of its own, at most 400 pixels high (small 240, large 640). Its text names it for screen readers, and the keyboard scrolls it.

desktop

Made from container.

It takes what container takes, and:

  • a file or an url (value): the picture behind it

A mat that takes all the height left on the page, with the image it is given (desktop %mat.png [...]) or a color of the theme, on which tiles are laid from left to right. Its menu is the context menu.

device

Made from container. Fields of its own: screen: 390x844.

It takes what container takes, and:

  • a pair (screen): the size of its screen in CSS pixels: 390x844

  • one of phone, tablet, desktop (screen): a phone (390x844), a tablet (834x1112) or a desktop (1280x800)

A screen of another size: its faces laid out at the size of its screen, phone (390x844, the first), tablet (834x1112), desktop (1280x800) or a pair from 200x200 to 3840x3840, and made smaller to fit its place. The narrow rules go by the width of its screen, as they go by the page’s. With fit it takes the height left as well and the whole screen fits in it, in the middle of its place.

title

Made from face.

It takes what face takes, and:

  • count: a number that changes runs from the old one to the new

  • shrink: on one line, as large as its width lets it be

The title of the page or of a screen: the text the browser shows for it, too.

heading

Made from face.

It takes what face takes, and:

  • count: a number that changes runs from the old one to the new

  • shrink: on one line, as large as its width lets it be

A heading inside a page. A small one is a heading over a few lines, as the day over what happened in it: the size of the text around it, still strong, and one level under the headings around it for a screen reader.

text

Made from face.

It takes what face takes, and:

  • count: a number that changes runs from the old one to the new

  • shrink: on one line, as large as its width lets it be

  • bold: its letters heavier, as the label over a number

  • clock: a date with a time shows only the time; the whole moment is in its tooltip

  • ago: a date says how long ago it was, 5 minutes ago; with rate, it keeps saying it

Text. A date, a time, a number or an amount is shown in the format of the active language; a date or a time is also said in a way a machine reads, and a date has its full form in its tooltip (see clock and ago).

code

Made from face.

Code, or any text shown exactly as written: in a fixed-width font, with its lines and spaces kept, and never translated. A line too long for the screen scrolls on its own instead of wrapping.

divider

Made from face.

A line between what comes before and after.

field

Made from input.

It takes what input takes, and:

  • email: its text is an email address

  • url: its text is a web address

  • integer: its value is a whole number

  • length and two integers: the fewest and most letters it takes: length 2 40

  • pattern and a block: a parse rule its text must match

A line of text. Its value is a string, or none when empty.

password

Made from input.

It takes what input takes, and:

  • length and two integers: the fewest and most letters it takes: length 8 64

  • pattern and a block: a parse rule its text must match

A field whose text is hidden.

number

Made from input.

It takes what input takes, and:

  • integer: its value is a whole number

  • min and a number: the least it takes

  • max and a number: the most it takes

A field for a number. Its value is an integer or a decimal number; text that is not one stays on screen with its message.

money

Made from input.

It takes what input takes, and:

  • a word (currency): the currency of the amount, its three letters: EUR

  • min and a money or a number: the least it takes

  • max and a money or a number: the most it takes

A field for an amount: money price "Price" EUR. Its value is an exact money!; it shows formatted, and while it is being edited, as a plain number in the language’s way.

date

Made from input.

It takes what input takes, and:

  • min and a date: the first day it takes

  • max and a date: the last day it takes

A field for a date, with a calendar. Its value is a date!; it is typed in the order of the active language, or as 2026-12-02.

date-range

Made from input.

It takes what input takes, and:

  • min and a date: the first day it takes

  • max and a date: the last day it takes

Two dates, a start and an end, picked on one calendar: date-range stay "Stay". Its value is a block of two date! values, the start first, or none. The first day picked stays marked until the second; the field shows both in the active language, and they are typed apart by a dash, as 3/11/2026 – 10/11/2026. min holds for the start and max for the end. A screen test sets it with type "Stay" [3-Nov-2026 10-Nov-2026].

time

Made from input.

It takes what input takes, and:

  • min and a time: the earliest time it takes

  • max and a time: the latest time it takes

  • step and a number: the minutes between the times it lists, 1 to 720

A field for a time of day, with a list of times: time start "Start" step 15. Its value is a time!. It is shown in the active language and typed as 9:30, 9.30, 930 or 9:30 pm. The list goes from its min to its max, the whole day unless given, step minutes apart, 30 unless given, and opens on the time it holds or the next one from now.

area

Made from input.

It takes what input takes, and:

  • length and two integers: the fewest and most letters it takes: length 0 500

  • pattern and a block: a parse rule its text must match

Several lines of text.

rich

Made from input.

Rich text: headings, bold, italic, lists and links. Its value is Markdown, a plain string; readonly shows it formatted. Code puts text where the user’s cursor is with insert-text.

check

Made from input.

A check box. Its value is true or false.

choice

Made from input.

It takes what input takes, and:

  • a block (options): what to choose from: texts, value and text, groups with a title

A list to choose one from: choice bike "Bike" ["Road" "City"]. An option is a string, both its value and its text, or a map with a value and a text. A title followed by a block is a group of options: ["Repairs" ["Brakes" "Gears"] "Other"]. The title, like a text, may be a text per language or a word of the dictionary.

Until one is picked it shows its hint, or Choose…. When it is required that line cannot be picked again; when it is not, picking it puts the value back to none.

toggle

Made from input.

A switch. Its value is true or false.

slider

Made from input.

It takes what input takes, and:

  • two numbers (rules): the least and the most it takes: 0 100

  • step and a number: how far one move takes it

A number picked by moving a handle along a line, with the number it stands at after it: slider volume "Volume" 0 50 step 5. The two numbers are the least and the most it takes, 0 and 100 unless given, and step how far one move takes it, 1 unless given; a decimal step gives decimal values. It starts at its least. The arrow keys, Home, End, Page Up and Page Down move it too. A screen test sets it with type.

radio

Made from choice.

It takes what choice takes, and:

  • segmented: its options as buttons joined in a bar

Options to choose one from, all shown: the same options as a choice, groups included, each with its title over its options. segmented shows them as buttons joined in a bar, the chosen one pressed.

upload

Made from input.

It takes what input takes, and:

  • multiple: takes more than one file

  • accept and a block: the files it takes: [“pdf” “image/*”]

A button to choose files, which is also a place to drop them. Its value is a block of objects with the name, size, type and file of each; multiple takes more than one, accept ["pdf" "image/*"] says which.

video

Made from face.

It takes what face takes, and:

  • a file or an url (value): the video it plays

  • poster and a file or an url: the image shown before it plays

  • captions and a file, an url or a block: its captions: a .vtt file, or one per language [en %a.vtt es %b.vtt]

  • loop (looping): starts again when it ends

  • muted (silent): plays without its sound

  • autoplay: plays on its own, silent

It fires on-end.

A video, with the browser’s own controls: video %intro.mp4 "Introduction". Its text is what a screen reader says for it. It takes poster, captions, loop, muted, autoplay and on-end (see the words of the dialect), and as wide as it can be unless small, medium or large says otherwise.

audio

Made from face.

It takes what face takes, and:

  • a file or an url (value): the sound it plays

  • loop (looping): starts again when it ends

  • muted (silent): plays without its sound

  • autoplay: plays on its own, silent

It fires on-end.

A sound, with the browser’s own controls: audio %bell.m4a "Bell". It takes loop, muted, autoplay and on-end.

widget

Made from input.

It takes what input takes, and:

  • a tag, right after the style (tag): the element it is, as the page’s JavaScript defines it: <geo-map>

  • a block (props): the element’s properties

It fires whatever events its element fires.

An element that the page’s JavaScript defines, as a face like any other: widget <geo-map> place "Place" [zoom: 12]. The tag names the element and comes first; the block sets its properties, and a second block is the action. Its value is the element’s value property, both ways, as JSON; when the element sends change, the value is read back and on-change runs. Any other on-xxx listens to the element’s event xxx, with the event’s detail in event/detail. With a name it is a field of its form, so required and the rules apply. The theme’s custom properties (--tb-*) reach it. See A face in JavaScript.

photo

Made from input.

It takes what input takes, and:

  • accept and a block: the images it takes

  • round: cut to a circle, as a person’s photo

  • a file or an url (value): the photo it starts with

An image and the buttons to choose another or remove it; clicking the image or dropping one on it chooses too. Its value is none, the address of an image kept elsewhere (as a record from the server has it), or the image chosen: an object with its name, size, type and file, as an upload’s. It takes images unless accept says otherwise; round makes it a circle: photo picture "Photo" round.

lookup

Made from input.

It takes what input takes, and:

  • multiple: takes more than one

  • known and a map: what each value shows as

  • links and a map: the screen each value links to when it is read only

It fires on-search.

A field that searches as the person types: its on-search gives what was found, and the person picks one, or several with multiple. known says what each value shows as; links, the screen each links to when it is read only.

progress

Made from face.

It takes what face takes, and:

  • a percent (value): how far it is

A bar: its value is a percent or a number from 0 to 1; with none, it moves without saying how far.

stat

Made from panel. It starts with pad: 5, gap: 1, composed: panel.

It takes what panel takes, and:

  • a number or a money (value): the number it shows

  • count: a number that changes runs from the old one to the new

  • trend and a block: the numbers it had, oldest first, drawn as a small line: trend [3 5 4 8]

A number that stands for something, as a dashboard shows it: stat "Takings" $1240.00. Its text says what the number is, its value is the number, and a second text is the line under it: stat "Late" 3 "of 41 this week". trend [3 5 4 8] draws the numbers it had, oldest first, as a small line at its foot, ending on a dot; two numbers at least, or it is a problem of the layout. A role colours the number and the line (stat "Late" 3 danger), and with count a new number runs from the old one, as a text’s does. is [...] gives it its number. On its own it is a card; in a panel it drops its border. The number is as large as the width of the stat lets it be, so four in a row never break one in two. A screen reader reads the text, the number and the line under it; the trend is for the eye. It is made of other styles, as an app makes its own: a panel whose layout: holds a text, a title shrink, a text and a canvas stretch (see styles of your own).

image

Made from face.

It takes what face takes, and:

  • a file or an url (value): the picture it shows

  • a pair (extent): its size

  • round: cut to a circle, as a person’s photo

An image, from a file or an address: image %logo.png. Its text is what a screen reader says for it; without one it is decoration. small, medium, large and fill set its width, and a pair its size, which it fills, cut to fit: image %ada.jpg "Ada" 48x48 round. round cuts it to a circle, as for a person’s photo.

backdrop

Made from face.

It takes what face takes, and:

  • a file or an url (value): the picture it shows

An image behind what holds it: view [backdrop %entry.jpg ...]. It is not laid out with the rest; it covers its container, and the whole window when that is the view or a screen. The theme lays a veil of the background over it, just as strong as it takes for text on it to be easy to read on any image, in light and dark; muted text takes the color of the text there.

canvas

Made from face. It starts with extent: 300x150.

It takes what face takes, and:

  • a pair (extent): the size of its drawing space

  • a block (draw): what it draws, in the draw dialect

  • stretch: as wide as it can be and as tall as its extent: its points spread across, its lines and dots keep their size

A drawing: canvas 120x120 [fill-pen primary circle 60x60 50]. The pair is the size of its drawing space, and the block is in the draw dialect. It is as wide as that size, or narrower when there is no room, and fill makes it as wide as it can be. stretch makes it as wide as it can be and as tall as its size: it is drawn again at each width, its points spread across it, its lines, dots and text keep their size. With a string, the drawing is a picture with that name for a screen reader; without one, it is decoration. Setting draw redraws it.

chart

Made from face. It starts with kind: bar.

It takes what face takes, and:

  • one of bar, line, area, pie, right after the style (kind): the kind of chart

  • a word, right after the style: the word that labels it: chart bar income is income: chart bar

  • one of bar, line, area, pie (kind): the kind of chart

  • a block (columns): the field of each series and its label

  • stacked: its series one on top of another

A chart of rows: chart bar income "Income" [month "Month" repairs "Repairs" parts "Parts"]. The word after chart is its kind, bar, line, area or pie; the next one is its label, as in a table. The first column names each point and the others are the series, each in a color of the theme; numbers, money and percents show as they do in a table. A pie shows the first series. stacked puts the series of a bar or area chart on top of each other, and small, medium or large sets its height. The string is its caption. Setting data redraws it, and a screen reader reads the same numbers as a table.

When the first column of every row is a moment, a date! or a text in ISO form, the points stand at their moments, oldest first, and the axis steps by round seconds, minutes, hours, days, months or years in the active language. A line or area with more points than room for a dot each (one per 6 pixels) has no dots and is drawn thinned to each pixel’s first, lowest, highest and last value; the pointer then shows a rule and the values of the nearest point. right-axis after a column, [at "When" bikes "Bikes" takings "Takings" right-axis], puts that series on its own scale with its numbers on the right. The steps up the side go from two to five, by the chart’s height.

orbit

Made from face.

It takes what face takes, and:

  • a word, right after the style: the word that labels it

  • a block (data): what it shows: its focus, nodes, edges and trail

It fires on-back.

One node of a graph in the middle and its neighbours on rings around it, joined by their edges:

view [
    orbit "Organization" [
        focus plenary
        nodes [plenary "Plenary" [primary count 9]  ana "Ana Ruiz" [accent]  town "Town council"]
        edges [plenary ana "Members"]
        trail [town]
    ] [print value]
]

focus is the node in the middle; nodes gives each node an id (a word, an integer, a string or an issue), a title, and a block of hints if it has any: a role or a color word, many for one that stands for many (a second ring), dashed for a shortcut, count n for how many it holds (small moons and a number), and steps n at k for a ring of n steps with the k-th the current one. edges gives two ids, a label and [solid], [dashed] or [faint] if they have them; an edge between two neighbours bends around the middle. trail lists the nodes the person came from, the most recent last; the last few show to one side, joined by a dotted line. Every node given that is neither the focus nor in the trail is a neighbour; past 30, a bubble pages through them, and past 18, edge labels show only while the pointer is on a bubble.

Picking a neighbour sets value to its id and runs the action; picking a node of the trail, or Escape, runs on-back instead, or the action when there is no on-back. The face never fetches anything: the action sets data again, with the node picked in the middle, and the bubbles that stay move to their new places, the new ones grow from the one picked and the rest fade. Dragging moves the view and a double click centres it again; Ctrl and the wheel, or a pinch, zoom, and so does the wheel alone when fit makes it fill the window. Tab goes through the neighbours and Enter picks one; a screen reader reads the node in the middle, then each neighbour as a link with the label of its edge. small, medium or large sets its height.

icon

Made from face.

An icon of the set Trebol brings, icon #heart, drawn in the color of its role.

The icons, for icon, an icon before a face’s text, a tile’s mark and a menu’s items; another name is a problem of the layout (#hart is not an icon; did you mean #heart?), and ui-icons is the list:

#search #plus #minus #close #check #chevron-left #chevron-right #chevron-up #chevron-down #chevrons-left #chevrons-right #arrow-left #arrow-right #arrow-up #arrow-down #edit #trash #user #mail #phone #info #warning #menu #home #folder #door #building #landmark #shield #fireworks #coins #book #scale #people #tree #truck #box #file #invoice #template #stack #image #settings #filter #refresh #undo #redo #download #upload #external #eye #lock #calendar #clock #star #heart #type #lines #rows #bold #italic #heading #list #list-ordered #link #hash #globe #banknote #check-square #toggle #radio #dropdown #panel #columns #grid #tabs #pointer

button

Made from face.

It takes what face takes, and:

  • key and a string (shortcut): a key that presses it: key “Ctrl+S”

A button: the block after it runs when it is pressed. With a menu, it opens the menu instead.

tile

Made from face.

It takes what face takes, and:

  • linked: stands for something kept elsewhere: marked with an arrow

  • mark and an issue and a text: a second, small icon on its icon, and its label: mark #list “List”

A large icon with its name under it, for a desktop: tile #folder "Reports" [...]. linked marks with an arrow one that stands for something kept elsewhere, and mark #list "List" puts a second, small icon on its icon.

table

Made from rows-face.

It takes what rows-face takes, and:

  • sortable: its headers sort its rows

  • sorted and a block: the order it starts in: [due asc]

It fires on-sort.

Rows of data in columns: table board [customer "Customer" due "Due back"] names the field of each column and its header; its data is a block of maps or objects. On a narrow screen, each row is a card. on-select lets the rows be chosen; sortable or on-sort let the headers sort them; totals is a row shown at the foot. Among the rows, [head 1 "Title"] is the title of a group, the width of the table, and [foot 1 row] its subtotals; level 2 is indented. Neither is chosen or sorted: sortable sorts the rows inside each group. A list shows them too. A column followed by image shows each row’s picture, from the address or file in its field, and image round cuts it to a circle: table people [photo "" image round name "Name"]. role-by tone after the table’s name paints each row in the role its tone field names, success, danger, warning, primary, accent or muted, as a word or a text in any case: the row is tinted with a bar at its start. After a column, [state "State" role-by tone], it paints that column’s cell in it instead. A value that names no role, or none, paints nothing; data is never a problem of the layout.

list

Made from rows-face.

The same rows as a table, as a list: the first field stands out and the rest go on a second line. The picture of a column of images goes first. role-by paints a whole item, and, after a column, its text.

timeline

Made from column. It starts with composed: column, order: newest. Fields of its own: told: none.

It takes what column takes, and:

  • a word, right after the style: the word that labels it: timeline log is log: timeline

  • a block (columns): the field of when, the field of what happened, and those of the line beneath

  • key and a word: the field that tells one row from another

  • role-by and a word: the field of a row whose value, success or danger, is the role its mark is painted in

  • one of newest, oldest (order): which rows come first: newest, as it starts, or oldest

  • relative: a time says how long ago it was, 5 minutes ago, and keeps saying it

What happened, and when, under the day it happened: timeline log [at text who]. Its rows are those of a list, a block of map! or object! rows. The first column is the field that says when, a date! or a text in ISO form as a server sends it ("2026-11-23T09:30:00Z"); the second is what happened, and the rest go on a quieter line beneath. A date with a zone is that moment anywhere; one without is the time on the clock where the page is; one with no time is the whole day, shown without a time. Each day has its heading, Today, Yesterday or its weekday and date, in the language of the page; rows with no moment go last, under none. newest rows come first unless oldest; with relative, a time less than a day ago says how long ago it was, 5 minutes ago, and keeps saying it as time goes by. role-by tone paints each row’s mark and text in the role its tone names. A timeline without the field of its time and of its text is a problem of the layout. Its text is what it says when it has no rows.

board

Made from face. Fields of its own: field: none, lanes: none, card: none.

It takes what face takes, and:

  • a word, right after the style: the word that labels it: board tasks is tasks: board

  • by and a word (field): the field of a card that names its lane: by status

  • a block (lanes): a word and a label for each lane

  • card and a block: the fields a card shows

  • key and a word: the field that tells one card from another

  • role-by and a word: the field of a card whose value, success or danger, is the role the card is painted in

Cards in lanes: board jobs by status [todo "To do" doing "Doing" done "Done"] makes a lane for each word, with its label, and puts in it, as a card, each row of its data whose status names it, a word or a text. A card shows the row’s title, or the fields of card [title "Job" who "Mechanic"], the first one large, as a list does. role-by tone paints each card in the role its tone names, as in a table. A card can be dragged to another lane, or moved there from its menu; then its field names that lane and on-drop runs, with event/row, event/from and event/to: when it gives false, the card goes back. on-select, or the block after the lanes when there is none, runs when a card is chosen, with it as row. When the field holds a machine, a lane is a state: a card goes to the lane only by a way of its machine from where it is to that state, whose event the drop sends.

tabs

Made from face. It starts with value: 1.

It takes what face takes, and:

  • a block (pane): a label and a block of faces per tab

Tabs, each with its title and its block: tabs ["General" [...] "Advanced" [...]]. Its value is the number of the tab shown.

tab

Made from face. Another face makes it; a layout does not write it.

One tab of tabs, which makes it: it is not written in a layout.

steps

Made from face. It starts with value: 1. Fields of its own: flow: none, trail: none.

It takes what face takes, and:

  • a word (flow): the machine that leads the steps

  • a block (pane): a label and a block of faces per step

A form filled in one step at a time: steps ["Who" [...] "Company" when [values/kind = "Company"] [...] "Check" [...]], each step a title and its block. A bar on top numbers the titles, and on a narrow screen a line says “Step 2 of 3”. Back and Next go under the step; Next shows the messages of the step’s fields and moves on only when they are all valid, and Enter in a field presses it. The submit buttons of the form show on the last step, next to Back, and values holds the fields of every step. A step with when applies only while its block is true: the bar leaves it out, and its fields are neither checked nor in values. Its value is the number of the step on show, counting every step: setting it shows that step without checking anything. A step done is chosen again with its title; each step moved on to is an entry in the browser’s history, so Back returns to the one before.

step

Made from face. Another face makes it; a layout does not write it.

One step of steps, which makes it: it is not written in a layout.

toolbar

Made from container.

It takes what container takes, and:

  • a block (pane): the faces it holds; — is a divider

A row of buttons that the keyboard reaches with one Tab and moves through with the arrows; --- puts a separator. On a narrow screen, a button with an icon shows only the icon.

breadcrumb

Made from face.

It takes what face takes, and:

  • a block (data): its items: a label and where each goes

Where the person is: breadcrumb ["Home" home "Clients" clients "Ada"] [go value]. Each item is a text and the word its action receives; the last, without a word, is where they are.

tree

Made from rows-face.

It fires on-expand.

Rows with rows inside, in their children, which open and close. Like a table, its rows can be chosen and dragged, and role-by paints a row, or, after its column, its label.

screens

Made from face. Fields of its own: entering: false.

It takes what face takes, and:

  • a block (data): its screens: a word, a title and a block of faces each

It fires on-change.

The screens of an app, one shown at a time, each with a link of its own: screens [home "Home" [...] client [id] "Client" [...]]. go goes to one; its value is the route shown.

screen

Made from face. Another face makes it; a layout does not write it.

It fires on-enter, on-leave.

One screen of screens, which makes it: it is not written in a layout.

rows

Made from input.

It takes what input takes, and:

  • a block (template): the fields of one row

  • min and an integer: the fewest rows it takes

  • max and an integer: the most rows it takes

A field made of rows the person adds and removes, each with the fields of its block: rows lines "Lines" min 1 [field part "Part" number qty "Qty"]. Its value is a block with a map for each row.

entry

Made from face. Another face makes it; a layout does not write it.

One row of rows, which makes it: it is not written in a layout.

submit

Made from button. It starts with role: primary, submit: true.

The button of a form: it runs its block only when every field of the form is valid, and Enter in any field presses it. Its block sees the form’s values.

dialog

Made from container. It starts with hidden: true.

It fires on-close.

A window over the page, hidden until open shows it and close hides it, with a title when it is given a text. On a phone, it takes the whole screen.

split

Made from container. It starts with value: 1.

Two panes side by side, with a handle between them that the mouse or the arrows move. On a narrow screen one is shown at a time: the one its value says, 1 or 2; the second has a button back to the first.