Search pages, headings and code across the docs, examples and tutorials.

to navigateto open
Dashboard

Components

The kit at a glance, and the grammar every component shares.

The kit is every component ohnejs/dashboard ships for building a page, and they all speak one grammar. A label takes a message key or plain text: a known key translates, any other string shows as written, and a getter stays live. A data component takes a getter, where undefined means loading and [] means empty, and a useResource result adds the failed and forbidden states. A color is a tone named by its meaning, never a hex value. Spacing is a gap step from -2 to 2, never a length.

Try every component live in the kit.

Layout

A page header with a back link, a title and badge, a description, and two buttons

page, section, stack, row, grid, cell, split, divider, and toolbar. Layout places the blocks of a page.

Cards and tabs

A card header with an icon, a title, a count badge, and an Invite button

card, tabs, and disclosure. Cards and tabs group a page into surfaces.

Actions

Rows of buttons in every variant and size

button, buttonGroup, iconGroup, select, menu, contextMenu, and copyButton. Actions covers the controls that act on a page.

Display

Soft badges in every tone

badge, statusBadge, statusDot, icon, avatar, alert, note, facts, list, meter, relativeTime, and the empty, error, and loading states. Display shows values and states.

Feedback

toast, confirm, and openDialog. Feedback tells the reader what happened.

Data

A card listing raids loaded from the API

useResource, loaded, and useAction. Data in the dashboard loads and saves through your API.

Tables

A sorted table of raiders with badge and number columns

table and pagination. Tables shows typed rows with sorting, paging, and selection.

Stats and charts

A line chart of this week against a dashed line for last week

stat, delta, lineChart, barChart, donutChart, barList, funnel, and sparkline. Stats and charts draws the numbers.

Forms

A settings form in a card, with Save and Revert buttons in its footer

form, field, fieldInput, and formField. Forms asks for input and saves it.

To see them working together, build your first page.