Skip to content

Radio button

Show design guidelines

Use radio buttons where users must make a single selection.

HTML React Angular
Option 1 Help or instructional text goes here Option 2
<certara-form-group label="Enabled group" variant="fieldset">
<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>
import { CertaraFormGroup, CertaraRadio } from '@certara/certara-ui-react';
<CertaraFormGroup label="Enabled group" variant="fieldset">
<CertaraRadio layout="stacked" name="example-01">
Option 1
<span slot="help">Help or instructional text goes here</span>
</CertaraRadio>
<CertaraRadio layout="stacked" name="example-01">Option 2</CertaraRadio>
</CertaraFormGroup>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-form-group label="Enabled group" variant="fieldset">
<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>

checked

Attributechecked
Typeboolean
Defaultfalse
Requiredfalse
DescriptionThe checked state of the radio

disabled

Attributedisabled
Typeboolean
Defaultfalse
Requiredfalse
DescriptionThe disabled state of the radio

layout

Attributelayout
Type"inline" | "inline-block" | "stacked" | "standalone"
Default'inline'
Requiredfalse
DescriptionStacked radios have one per line, inline radios are all on the same line

name

Attributename
Typestring
Defaultundefined
Requiredfalse
DescriptionThe name of the radio

size

Attributesize
Type"md" | "sm"
Default'md'
Requiredfalse
DescriptionThe size of the checkbox

value

Attributevalue
Typeany
Default'on'
Requiredfalse
DescriptionThe value of the radio
NameDescriptionBubbles
certaraBlurStandard event emitted when radio is blurredtrue
certaraChangeStandard event emitted when radio is toggledfalse
certaraFocusStandard event emitted when radio is focusedtrue

There are no public methods available for this component

NameDescription
Content for the label
helpHelp text that sits below the label