Skip to content

Checkbox

Show design guidelines

A checkbox is an input control that allows a user to select one or more options from a number of choices.

HTML React Angular
Label Help or instructional text goes here Optional help link Label
<certara-checkbox name="example" layout="stacked">
Label
<span slot="help">
Help or instructional text goes here
<certara-link target="_blank" icon="arrow-up-right-from-square" href="https://help.pinnacle21.net/en/articles/5157972-how-do-i-configure-studies">
Optional help link
</certara-link>
</span>
</certara-checkbox>
<certara-checkbox name="example" layout="stacked">Label</certara-checkbox>
import { CertaraCheckbox, CertaraLink } from '@certara/certara-ui-react';
<CertaraCheckbox name="example" layout="stacked">
Label
<span slot="help">
Help or instructional text goes here
<CertaraLink target="_blank" icon="arrow-up-right-from-square" href="https://help.pinnacle21.net/en/articles/5157972-how-do-i-configure-studies">
Optional help link
</CertaraLink>
</span>
</CertaraCheckbox>
<CertaraCheckbox name="example" layout="stacked">Label</CertaraCheckbox>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-checkbox name="example" layout="stacked">
Label
<span slot="help">
Help or instructional text goes here
<certara-link target="_blank" icon="arrow-up-right-from-square" href="https://help.pinnacle21.net/en/articles/5157972-how-do-i-configure-studies">
Optional help link
</certara-link>
</span>
</certara-checkbox>
<certara-checkbox name="example" layout="stacked">Label</certara-checkbox>

checked

Attributechecked
Typeboolean
Defaultfalse
Requiredfalse
DescriptionThe checked state of the checkbox

disabled

Attributedisabled
Typeboolean
Defaultfalse
Requiredfalse
DescriptionThe disabled state of the checkbox

indeterminate

Attributeindeterminate
Typeboolean
Defaultfalse
Requiredfalse
DescriptionThe indeterminate state of the checkbox. Can only be set via JavaScript

inputType

Attributeinput-type
Type"checkbox" | "radio"
Default'checkbox'
Requiredfalse
DescriptionInternal prop to make a radio button. Best to use the certara-radio component directly

layout

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

name

Attributename
Typestring
Defaultundefined
Requiredfalse
DescriptionThe name of the checkbox

size

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

value

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

There are no public methods available for this component

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