Skip to Content
Hookboard
Components

Components

The catalog: every element a card's ui can contain.

A card's ui is a tree of elements. Each element is a JSON object with a type from this catalog, that type's properties, and for containers a children list. Nothing outside the catalog is accepted: no HTML, styles or scripts.

The same catalog is available as data at GET https://app.hookboard.dev/api/v1/catalog and as JSON Schema inside the OpenAPI document.

All components

ComponentCategoryChildrenWhat it is
stackLayoutanyLays children out in a column or a row.
gridLayoutanyPlaces children in equal columns. Collapses to fewer columns on narrow screens.
sectionLayoutanyA titled group of content.
panelLayoutanyA bordered container that sets content apart inside a card.
tabsLayoutonly tabSwitches between tab panels. Children must be tab elements.
tabLayoutanyOne panel inside tabs. Only inside tabs.
accordionLayoutonly accordionItemCollapsible sections. Children must be accordionItem elements.
accordionItemLayoutanyOne collapsible section inside an accordion. Only inside accordion.
scrollLayoutanyA fixed-height area that scrolls its content.
separatorLayoutnoneA dividing line.
spacerLayoutnoneEmpty space. In a row it pushes siblings apart.
headingContentnoneA heading.
textContentnoneA run of plain text.
markdownContentnoneFormatted text written in Markdown. Raw HTML is not rendered.
badgeContentnoneA small status label.
iconContentnoneAn icon from the built-in set.
alertContentnoneA callout for something the reader should notice.
linkContentnoneA link that opens in a new tab.
codeContentnoneA block of preformatted code or log output, with a copy button.
timeContentnoneA point in time, kept current while the card is on screen.
statDatanoneOne figure with a label and an optional change indicator.
progressDatanoneA progress bar.
meterDatanoneA ring gauge for a value within a range.
keyValueDatanoneA list of label and value pairs.
tableDatanoneA table of rows.
listDatanoneA simple list of items, each with a title and optional details.
imageMedianoneAn image from a URL, or a file sent with the card as {{files.name}}.
avatarMedianoneA round picture with a text fallback.
videoMedianoneA video player.
audioMedianoneAn audio player.
buttonInputnoneRuns an action when pressed.
inputInputnoneA single-line text field.
textareaInputnoneA multi-line text field.
selectInputnonePick one from a dropdown.
radioInputnonePick one from a visible list.
segmentedInputnonePick one from a compact row of buttons.
checkboxInputnoneA checkbox with a label.
switchInputnoneAn on/off switch with a label.
sliderInputnonePick a number by dragging.
lineChartChartnoneA line chart over a list of rows.
areaChartChartnoneA filled area chart over a list of rows.
barChartChartnoneA bar chart over a list of rows.
pieChartChartnoneA donut chart showing parts of a whole.
sparklineChartnoneA tiny trend line without axes, for use beside a figure.

Common properties

These work on every component.

PropertyTypeRequiredDefaultWhat it does
idtextOptional name for the element, for your own reference.
visibleWhenexpressionExpression; the element is shown only while it is true.
repeatany JSONRenders the element once per item: { "each": "data.items", "as": "item" }. Inside, use item and index.
spannumberColumns this element covers inside a grid.
growbooleanTake up the free space inside a row.

On this page