Form Elements




File Upload

Default List of files to upload


Accept only certain types of files


Add a custom message


Add your one accepted files description


Sometimes you may want to create a custom description that is easier for users to read. In this case, you can use the acceptedFilesDescription prop.

Set a file size limit


Error


Toggle

Default State


Disabled


Name and Value


Custom checkbox input


Custom radio inputs


Form Pill

Form Pill User


Form Pill Size


Truncated Text


For Form Pills with longer text, the truncate global prop can be used to truncate the label within each Form Pill. Hover over the truncated Form Pill and a Tooltip containing the text or tag section of the Form Pill will appear. See here for more information on the truncate global prop.

Wrapped Text


For Form Pills with longer text, the wrapped prop can be used to wrap the label within each Form Pill.

Note: Avoid using the wrapped and small props together, as their styles conflict and may cause functionality issues.

Form Pill Tag


Example


By default textTransform = "none". If there is a need to enforce lowercase, please pass the textTransform = "lowercase prop.

Form Pill Icon


Form Pill Colors


The Status, Data, and Product colors highlighted above can be passed to the color prop. Primary is the default color. Form pills with a text tag, an avatar, or an icon with text tag can all receive the color prop.

Form Group

Default


Button


Full Width


Full Width is a prop that can be added to any of the Form Group options. This prop allows the Form Group to stretch the full width of the div.

Date Picker


Select


Selectable Card


Selectable Card Icon