Skip to content

Checkbox

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

certara-checkbox is best used inside a certara-form-group.

Label
Help or instructional text goes here Optional help link
Disabled Disabled selected
<certara-checkbox name="example" layout="stacked">Label
<div 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>
</div>
</certara-checkbox>
<certara-checkbox name="example2" layout="stacked" disabled>Disabled</certara-checkbox>
<certara-checkbox name="example3" layout="stacked" disabled checked >Disabled selected</certara-checkbox>

certara-checkbox

Properties

PropertyAttributeDescriptionTypeDefault
checkedcheckedThe checked state of the checkboxbooleanfalse
disableddisabledThe disabled state of the checkboxbooleanfalse
indeterminateindeterminateThe indeterminate state of the checkbox. Can only be set via JavaScriptbooleanfalse
inputTypeinput-typeInternal prop to make a radio button. Best to use the certara-radio component directly"checkbox" | "radio"'checkbox'
layoutlayoutLayout options for stacked or inline checkboxes"inline" | "inline-block" | "stacked" | "standalone"'inline'
namenameThe name of the checkboxstringundefined
sizesizeThe size of the checkbox"md" | "sm"'md'
valuevalueThe value of the checkboxany'on'

Events

EventDescriptionType
certaraBlurStandard event emitted when checkbox is blurredCustomEvent<void>
certaraChangeStandard event emitted when checkbox is toggledCustomEvent<CheckboxChangeEventDetail<any>>
certaraClickStandard event emitted when checkbox is clickedCustomEvent<void>
certaraFocusStandard event emitted when checkbox 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

Used by

Depends on

Graph

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