Skip to content

Radio button

Use radio buttons where users must make a single selection.

Option 1 Help or instructional text goes here Option 2 Disabled off Disabled on
<certara-form-group label="Enabled group" variant="fieldset" error="Error message">
<certara-radio layout="stacked" name="example-01">
Option 1
<span slot="help">
Help or instructional text goes here
</span>
</certara-radio>
<certara-radio layout="stacked" name="example-01">
Option 2
</certara-radio>
</certara-form-group>
<certara-form-group label="Disabled Group" variant="fieldset">
<certara-radio layout="stacked" name="example-02" disabled>
Disabled off
</certara-radio>
<certara-radio layout="stacked" name="example-02" disabled checked>
Disabled on
</certara-radio>
</certara-form-group>

certara-radio

Properties

PropertyAttributeDescriptionTypeDefault
checkedcheckedbooleanfalse
disableddisabledbooleanfalse
layoutlayout"inline" | "inline-block" | "stacked" | "standalone"'inline'
namenamestringundefined
sizesize"md" | "sm"'md'
valuevalueany'on'

Events

EventDescriptionType
certaraBlurStandard event emitted when radio is blurredCustomEvent<void>
certaraChangeStandard event emitted when radio is toggledCustomEvent<CheckboxChangeEventDetail<any>>
certaraFocusStandard event emitted when radio is focusedCustomEvent<void>

Slots

SlotDescription
Content for the label
"error"Error text that sits below the label
"help"Help text that sits below the label

Dependencies

Depends on

Graph

graph TD;
certara-radio --> certara-checkbox
certara-checkbox --> certara-help-block
style certara-radio fill:#f9f,stroke:#333,stroke-width:4px