Skip to content

Radio button

Show design guidelines

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
Description

disabled

Attributedisabled
Typeboolean
Defaultfalse
Requiredfalse
Description

layout

Attributelayout
Type"inline" | "inline-block" | "stacked" | "standalone"
Default'inline'
Requiredfalse
Description

name

Attributename
Typestring
Defaultundefined
Requiredfalse
Description

size

Attributesize
Type"md" | "sm"
Default'md'
Requiredfalse
Description

value

Attributevalue
Typeany
Default'on'
Requiredfalse
Description
NameDescriptionBubbles
certaraBlurStandard event emitted when radio is blurredtrue
certaraChangeStandard event emitted when radio is toggledtrue
certaraFocusStandard event emitted when radio is focusedtrue

There are no public methods available for this component

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