Components

An app names its controls, and the host draws them. These are the 30 built-in controls of the core catalog, running below in Component gallery, an example app with a page for each kind. Everything in it works: type, choose, press, sort, draw.

Every built-in control

The 30 controls of the core catalog, in its order, each in its own words. Each links to its props, events and slots on the catalog page.

  • stack

    Arrange parts one after another, down the view or across it.

  • grid

    Arrange parts in equal columns, filling row by row.

  • group

    A titled section that gathers related parts, such as the fields of an address or the figures for one month.

  • tabs

    Show one of several panels at a time, with a tab for each that its panel names, so each child is usually a group whose title names its tab.

  • dialog

    Ask for a person's attention or a short decision on top of the current view, without leaving it.

  • divider

    Separate groups of content with a visible break.

  • text

    Show a piece of text, such as a sentence, a value or a note.

  • heading

    Title a view or a section of one, so people can scan and navigate by headings.

  • image

    Show a picture, such as a photo, an illustration or a picked image file.

  • icon

    Show a small symbol named by meaning, such as add, delete, warning or search.

  • badge

    Mark something with a short status or count, such as New, Overdue or 3.

  • stat

    Show one key figure with its name and, optionally, which way it is moving.

  • progress

    Show progress toward a numeric target, or that work is under way when the amount is unknown.

  • alert

    Tell a person something important in place: that an action failed, that something needs attention, or that something worked.

  • textInput

    Let a person enter text: a name, an email address, a note or a longer description.

  • numberInput

    Let a person enter a number, such as an amount of money, a quantity or a percentage.

  • dateInput

    Let a person choose a calendar date, a date and time, or a time of day, such as a due date, an appointment or an alarm.

  • toggle

    Let a person turn one setting on or off.

  • choice

    Let a person pick exactly one option from a list.

  • multiChoice

    Let a person pick any number of options from a list, such as tags or days of the week.

  • slider

    Let a person set a number within a fixed range by feel, such as volume, a rating or a budget split.

  • fileInput

    Let a person attach files, or take a photo or recording with the device, for example to add a receipt to an expense.

  • form

    Gather related inputs into one unit that is submitted together, and report whether every input is acceptable.

  • button

    Let a person start something: save, send, add, delete, start a game.

  • link

    Take a person somewhere: another view of this app, or a web address outside it.

  • list

    Show a collection of items one after another, each drawn by the item template, and let a person pick one, move one to another list, or put one at a place of their choosing.

  • table

    Show records as rows with named columns so people can compare, sort, select and page through them.

  • chart

    Show how numbers compare or change, drawn from a list of records.

  • canvas

    A drawing surface for casual games and custom visuals.

  • diagram

    Explain how parts connect: an architecture, a flow or a process.

Build your own components

A vendor describes new controls and capabilities in a catalog of its own, and an app names them beside the built-in ones. A host draws such a control with a renderer, or draws the app’s fallback when it has none.

Build your own components