Ctrl + k
Theme:

Radio

Radio component is a wrapper for the native input[type="radio"] element.

You can use label property to set the radio's label. Also, label slot provides for complex contents. If you don't set neither label property nor label slot, the radio will be rendered without label.

Group radios on the same horizontal row by setting inline boolean property.

Put radios on the opposite side with the reverse boolean property.

Here is a complex example for payment card selection.

© 2024 YeSvelte. All Rights Reserved