Forms

Tailwind CSS Radio

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

Default Radio

A basic example of Tailwind CSS Radio component.

Inline

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

Disabled

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

Sizes

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

Source Code

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