Skip to content

Checkbox

Show design guidelines

HTML React Angular
Label Help or instructional text goes here Optional help link
<certara-checkbox name="example" layout="stacked">
Label
<span slot="help">
<span class="help-block__text">Help or instructional text goes here</span>
<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>
import { CertaraCheckbox, CertaraLink } from '@certara/certara-ui-react';
<CertaraCheckbox name="example" layout="stacked">
Label
<span slot="help">
<span className="help-block__text">Help or instructional text goes here</span>
<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>
// 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">
<span class="help-block__text">Help or instructional text goes here</span>
<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>

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
DescriptionLayout options for stacked or inline checkboxes

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 toggledtrue
certaraClickStandard event emitted when checkbox is clickedtrue
certaraFocusStandard event emitted when checkbox 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