Forms

Tailwind CSS Select

The Tailwind CSS Select is a custom component designed to enable styled form select controls.

Default Select

A basic example of Tailwind CSS Select.

Label

Display a Tailwind CSS Select with an associated form input label element for better accessibility and user experience.

Hint

Include hint text below a Tailwind CSS Select for an additional guidance or context for the input field.
Hint text goes here

Validation

Utilize Tailwind CSS Select validation states based on the form validation status to enhance user feedback and overall form usability.

Disabled

Use the disabled attribute of the Tailwind CSS Select to indicate non-interactivity.

Sizes

Use the .select-sm and .select-lg custom classes to adjust the size of Tailwind CSS Select fields, providing flexibility for different design requirements.

Source Code

The following source file manages the CSS styles of the Tailwind CSS Select component. Upon building the assets using Webpack Build Tools , the below file is compiled and added into the dist/assets/css/styles.css bundle, making it available globally across all pages.
File Description
src/core/plugins/components/select.js The Tailwind CSS compatible plugin written in PostCSS for applying CSS styles to the Tailwind CSS Select component.