Checkbox
Basic usage
Show editable code example
Any Paragon component or export may be added to the code example.
Disabled
Show editable code example
Any Paragon component or export may be added to the code example.
Default checked
Show editable code example
Any Paragon component or export may be added to the code example.
Call a function
Show editable code example
Any Paragon component or export may be added to the code example.
Controlled example
Show editable code example
Any Paragon component or export may be added to the code example.
Props API#
Check Props API
- checked
bool
Defaultfalse(
Boolean
):true
if the state should be checked,false
otherwise. This prop can be used to manage the Checkbox more directly, overriding the default Checkbox checked state. - onChange
func
Default() => {}(
Boolean
):true
if the checkbox should be disabled,false
otherwise - inputRef
func
|shape
{current:}PropTypes.element
,function to be called when the checkbox changes state
Usage Insights#
Check
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
frontend-app-admin-portal | 20.26.3 | 2 | |
frontend-app-authn | 20.34.0 | 3 | |
frontend-app-communications | 20.30.1 | 2 | |
frontend-app-course-authoring | 20.32.0 | 2 | |
frontend-app-discussions | 20.15.0 | 2 | |
frontend-app-learner-record | 20.32.0 | 1 | |
frontend-app-learning | 20.28.4 | 1 | |
frontend-lib-content-components | 20.32.0 | 4 | |
frontend-lib-special-exams | 20.22.4 | 1 | |
prospectus | 20.32.3 | 10 |