Skip to content

Switches

Similar to Checkboxes, you can use Switches to indicate or control boolean values. They are usually used to turn a specific setting on or off.

Label Help or instructional text goes here
<certara-switch name="example-1">
Label
<span slot="help">Help or instructional text goes here</span>
</certara-switch>

certara-switch

Properties

PropertyAttributeDescriptionTypeDefault
checkedcheckedbooleanfalse
disableddisabledbooleanfalse
hideLabelhide-labelbooleanfalse
namenamestringthis.inputId
sizesize"default" | "sm"'default'
valuevalueany'on'

Events

EventDescriptionType
certaraBlurCustomEvent<void>
certaraChangeCustomEvent<CheckboxChangeEventDetail<any>>
certaraFocusCustomEvent<void>

Dependencies

Depends on

Graph

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