跳到主要内容

Form controls

Inputs, pickers and the containers that label them. Every control here is controlled: it renders the value it is given and reports changes through its callback.

Overview​

The following components are available:

ComponentDescription
AccessRightSelectDrop-down for choosing an access level, with an icon, a description and a paid badge on each row.
CalendarMonth grid for picking a day, with month and year views behind it.
CheckboxCheckbox with a label, an indeterminate state and an optional help button.
ColorInputHex field with a swatch that opens a colour picker.
ColorPickerSaturation square with a hue strip for choosing a colour, with or without a hex field and buttons.
ComboBoxButton showing the current choice, with a list of options under it.
DatePickerButton that becomes a removable chip once a date is chosen, with a calendar behind it.
DateTimePickerA date chip and a time beside it, editable in place.
EmailInputText field that parses what is typed as an email address and colours itself when it does not parse.
FieldContainerLayout wrapper for one form field: an optional label with a help tooltip, the control itself, and its error message.
FileInputRead-only field with a folder icon that opens the file dialog and accepts a drop.
FormWrapperWhite card of a fixed width that the portal's sign-in and wizard forms sit on.
InputBlockText field with an icon at the end and room for a prefix before it, inside one border.
LabelCaption for a form field, with an optional required asterisk and an error colour.
PasswordInputPassword field with a reveal eye, a strength tooltip and a generator.
QuantityPickerMinus and plus around a number, with an optional slider and quick-add chips.
RadioButtonGroupA set of radio buttons built from an array, with the selected value handled for you.
RadioButtonOne option of a single-choice set, drawn as a labelled circle.
SearchInputSearch field with a magnifier, an optional clear button and a debounced change callback.
SliderRange input with the kit's own track and handle.
TextInputControlled single-line text field in three fixed widths, with optional masking, error and warning states.
TextareaMulti-line text field that grows with its content, with optional line numbers, a copy button and a JSON mode.
TimePickerTwo small fields, hours and minutes, that move the caret along as you type.
ToggleButtonSwitch for one on/off setting, with an optional label beside it.