Skip to content
Star

PxRadioButton

A styled radio button input. Works with v-model in a group — all radio buttons sharing the same modelValue ref will behave as a single group.

Usage

Demo

Selected Plan: monthly

Props

PropTypeDefaultDescription
modelValuerequiredunknownThe current selected value in the radio group. Share the same ref across all buttons in a group.
valuerequiredunknownThe value this button represents. Checked when modelValue === value.
inputIdstringundefinedHTML id for the input. Use with a matching label for attribute.
disabledbooleanfalseDisables this radio button.
namestringundefinedHTML name attribute for the input (groups native radio buttons).

Emits

EventPayloadDescription
update:modelValueunknownEmitted when this radio button is selected. Value is this button's value prop.

Built with VitePress