New image

LIBRARIES

Polaris Components FigMayo
👋 Getting started

components

Ctrl-K
Polaris Components FigMayo/Text field
Updated 18 December 2024
Text field

Use when input text should be a number.

Badge
Component Preview

States

Preview

Properties

Tone

Sets the color treatment of the Text field.

Preview

Label

A label is displayed by default but can be hidden using the `Label` property.

Preview

Label action

Toggle to display an action to the right of the field label.

Preview

Help text

Toggle to display help text below the field.

Preview

Error

Use the `State` property to display the field with a validation error.

Preview

Prefix

Toggle to display an icon or text to the left of the input value.

Preview

Clear button

Toggle to display a clear button to the right of the input value.

Preview

Use when the expected input could be more than one line.

Badge
Component Preview

States

Preview

Properties

Tone

Sets the color treatment of the Text field.

Preview

Label

A label is displayed by default but can be hidden using the `Label` property.

Preview

Label action

Toggle to display an action to the right of the field label.

Preview

Help text

Toggle to display help text below the field.

Preview

Error

Use the `State` property to display the field with a validation error.

Preview

Max length

Toggle to display a max character count for the field.

Preview

A text field is an input field that merchants can type into. It has a range of options and supports several text formats including numbers.

Badge
Component Preview

States

Preview

Borderless

Toggle to remove the visual border from the field.

Preview

Properties

Size

Change the size of the text field.

The `slim` size is used in the `Filter` component.

Preview

Tone

Sets the color treatment of the Text field.

Preview

Label

A label is displayed by default but can be hidden using the `Label` property.

Preview

Label action

Toggle to display an action to the right of the field label.

Preview

Help text

Toggle to display help text below the field.

Preview

Error

Use the `State` property to display the field with a validation error.

Preview

Prefix

Toggle the `Prefix` property to display an icon or text to the left of the input value.

Preview

Suffix

Toggle the `Suffix` property to display an icon or text to the right of the input value.

Preview

Clear button

Toggle to display a clear button to the right of the input value.

Preview
Mike Miller
Updated 18 Dec 2024
Segment bottom(4 variants)
View Figma
    PlaygroundFigma
Mike Miller
Updated 18 Dec 2024
Multiline field(9 variants)
View Figma
Mike Miller
Updated 18 Dec 2024
Number field(8 variants)
View Figma
Mike Miller
Updated 18 Dec 2024
Text field(26 variants)
View Figma