Forms

Tailwind CSS Checkbox

Tailwind CSS Checkbox is a custom component designed to enable styled form checkbox contorls that offer consistency and ease of customization across various forms.

Default Checkbox

A basic example of Tailwind CSS Checkbox component.

Inline

An example to display Tailwind CSS Checkbox components in an inline layout, demonstrating how to align multiple checkboxes horizontally for a clean and organized presentation.

Indeterminate

Programmatically set the indeterminate state of a Tailwind CSS Checkbox to indicate a mixed selection state. This feature is useful for parent checkboxes that represent the selection state of multiple child checkboxes.

Disabled

Use the disabled attribute of the Tailwind CSS Checkbox to indicate non-interactivity, showing users that the checkbox cannot be toggled.

Sizes

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

Source Code

The following source file manages the CSS styles of the Tailwind CSS Checkbox 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/checkbox.js The Tailwind CSS compatible plugin written in PostCSS for applying CSS styles to the Tailwind CSS Checkbox component.