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.
This is the reference host running in this page, on the app’s sample data, and nothing you enter is kept. Open it in the playground to see and change its document as it runs.
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.
stackArrange parts one after another, down the view or across it.
gridArrange parts in equal columns, filling row by row.
groupA titled section that gathers related parts, such as the fields of an address or the figures for one month.
tabsShow 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.
dialogAsk for a person's attention or a short decision on top of the current view, without leaving it.
dividerSeparate groups of content with a visible break.
textShow a piece of text, such as a sentence, a value or a note.
headingTitle a view or a section of one, so people can scan and navigate by headings.
imageShow a picture, such as a photo, an illustration or a picked image file.
iconShow a small symbol named by meaning, such as add, delete, warning or search.
badgeMark something with a short status or count, such as New, Overdue or 3.
statShow one key figure with its name and, optionally, which way it is moving.
progressShow progress toward a numeric target, or that work is under way when the amount is unknown.
alertTell a person something important in place: that an action failed, that something needs attention, or that something worked.
textInputLet a person enter text: a name, an email address, a note or a longer description.
numberInputLet a person enter a number, such as an amount of money, a quantity or a percentage.
dateInputLet 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.
toggleLet a person turn one setting on or off.
choiceLet a person pick exactly one option from a list.
multiChoiceLet a person pick any number of options from a list, such as tags or days of the week.
sliderLet a person set a number within a fixed range by feel, such as volume, a rating or a budget split.
fileInputLet a person attach files, or take a photo or recording with the device, for example to add a receipt to an expense.
formGather related inputs into one unit that is submitted together, and report whether every input is acceptable.
buttonLet a person start something: save, send, add, delete, start a game.
linkTake a person somewhere: another view of this app, or a web address outside it.
listShow 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.
tableShow records as rows with named columns so people can compare, sort, select and page through them.
chartShow how numbers compare or change, drawn from a list of records.
canvasA drawing surface for casual games and custom visuals.
diagramExplain 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.