This lesson will cover the following topics:

03 | Root
05 | Input
06 | Messages

01 Getting Started

This tutorial covers styling the input fields, including:
  • Using the styling panel.
  • Root properties, variants, primary colors, and sizes.
  • Use of label and shrink label.
  • Input style properties for main text, prefix, and suffix.
  • Placeholder and message styles.
Input elements are used to create interactive elements for users to provide information.

02 Using the Styling Panel

To navigate to the project styling panel:
1. Expand the Project dropdown and select Style.
2. Click Configure from the submenu. The Customize Styles window opens.

expanded project dropdown > style > configure

3. Navigate to the Input elements to start styling them. To jump to the input elements section, click on an input element in your project.

customize styles window with the input fields styling options displayed

The All Controls dropdown lets you choose which element grouping you want to style. If you select the All Controls option and change the Placeholder styling, all the elements that contain a placeholder option will be affected.

all controls dropdown

03 Root

The element variant offers different looks for your input field. Variants are only available for specific elements.

customize styles > input variant

Primary selects the main color for your element. In some elements, the primary will affect the input fill, the border, or the checkbox.

customize styles > root > primary

You can set a uniform size for your input element.

customize styles > root > sizes

04 Label and Shrink Label

Label is the description text above the input box.

The shrink label is the text that is displayed in the input box. Usually, the default mode for the shrink labels is set permanently to shrink. This ensures the label is always shown to the user.

customize styles > input field > shrink label > always shrink

If you turn off the Always Shrink option, the label will display in the input box; when the user clicks on the input element, the label floats above the input field, and the shrink label displays.
example of how the content is displayed if the always shrink function is disabled

05 Input

This is the main component of the field where the user will provide the information. Your input fields can consist of prefix and suffix text and icons.

customize styles window with input styling options displayed

To enable a prefix or suffix, navigate to the element settings menu and select the interactivity tab. Here, you can allow the prefix and suffix options:

enabling prefix and suffix icons in the element interactivity tab

06 Messages

Messages display information to users based on their input. The message text itself is configured in the element settings menu, but the styling of that text is configured in the project styling menu.

customize styles screen with messages styling options expanded

07 Got Feedback?

Additional Resources