AlertDialog

A control that allows the user to toggle between checked and not checked.

  • Name@spark-ui/checkbox
    Version2.1.3
    LicenseMIT
    npmgithubReported IssuesReport a bug
  • Checkbox#

    A control that allows the user to toggle between checked and not checked.

    AttributeTypeDescriptionDefault
    iconReactNodeThe checked icon to use.null
    indeterminateIconReactNodeThe indeterminate icon to use.null
    defaultCheckedbooleanThe checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.null
    checkedCheckedStatusThe controlled checked state of the checkbox. Must be used in conjunction with onCheckedChange.null
    disabledbooleanWhen true, prevents the user from interacting with the checkbox.null
    requiredbooleanWhen true, indicates that the user must check the checkbox before the owning form can be submitted.null
    namestringThe name of the checkbox. Submitted with its owning form as part of a name/value pair.null
    valuestringThe value given as data when submitted with a name.null
    onCheckedChange(checked: boolean) => voidEvent handler called when the checked state of the checkbox changes.null
    intent"main" | "support" | "accent" | "basic" | "success" | "alert" | "error" | "info" | "neutral"-null

    CheckboxGroup#

    A checkbox group allows users to select one or more items from a list of choices.

    AttributeTypeDescriptionDefault
    defaultValuestring[]The initial value of the checkbox groupnull
    onCheckedChange(value: string[]) => voidThe callback fired when any children Checkbox is checked or uncheckednull
    orientation"horizontal" | "vertical"-vertical
    intent"main" | "support" | "accent" | "basic" | "success" | "alert" | "error" | "info" | "neutral"-null
    namestringThe name of the group. Submitted with its owning form as part of a name/value pair.null
    valuestring[]The value of the checkbox group.null