Skip to main content

Polaris web components

Forms

CheckboxCheckbox

Checkbox

Give users a clear way to make selections, such as agreeing to terms or choosing multiple items from a list.

ChoiceListChoiceList

ChoiceList

Present multiple options to users, allowing either single selections with radio buttons or multiple selections with checkboxes.

ConsentCheckboxConsentCheckbox

ConsentCheckbox

Use buyer consent checkboxes for collecting the buyer’s approval for a given policy.

ConsentPhoneFieldConsentPhoneField

ConsentPhoneField

Display a phone field for customers to sign up for text message marketing, noting that the phone field value will be automatically saved during checkout.

DateFieldDateField

DateField

Allow users to select a specific date with a date picker.

DatePickerDatePicker

DatePicker

Allow users to select a specific date or date range.

DropZoneDropZone

DropZone

Lets users upload files through drag-and-drop functionality into a designated area on a page, or by activating a button.

EmailFieldEmailField

EmailField

Let users enter email addresses with optimized keyboard settings.

FormForm

Form

Wraps one or more form controls and enables implicit submission, letting users submit the form from any input by pressing “Enter.” Unlike the HTML form element, this component doesn’t automatically submit data via HTTP.

MoneyFieldMoneyField

MoneyField

Collect monetary values from users with built-in currency formatting and validation.

NumberFieldNumberField

NumberField

Collect numerical values from users with optimized keyboard settings and built-in validation.

PasswordFieldPasswordField

PasswordField

Securely collect sensitive information from users.

PhoneFieldPhoneField

PhoneField

Use PhoneField to allow users to enter phone numbers.

SelectSelect

Select

Allow users to pick one option from a menu.

SwitchSwitch

Switch

Give users a clear way to toggle options on or off.

TextAreaTextArea

TextArea

Collect longer text content from users with a multi-line input that expands automatically.

TextFieldTextField

TextField

Lets users enter or edit text within a single-line input.

URLFieldURLField

URLField

Collect URLs from users with built-in formatting and validation.