Checkbox Group Indeterminate

PreviousNext

checkbox-group-indeterminate-demo

Docs
intentuipage

Preview

Loading preview…
components/docs/forms/checkbox/checkbox-group-indeterminate-demo.tsx
"use client"

import { Checkbox, CheckboxGroup, CheckboxLabel } from "@/components/ui/checkbox"
import { Description } from "@/components/ui/field"

export default function CheckboxGroupIndeterminateDemo() {
  return (
    <CheckboxGroup defaultValue={["encryption"]} className="ml-6">
      <Checkbox isIndeterminate value="encryption" isReadOnly>
        <CheckboxLabel>Encryption</CheckboxLabel>
        <Description>Enable encryption.</Description>
      </Checkbox>
      <Checkbox value="firewall">
        <CheckboxLabel>Firewall</CheckboxLabel>
        <Description>Enable firewall protection.</Description>
      </Checkbox>
      <Checkbox value="backup">
        <CheckboxLabel>Backup</CheckboxLabel>
        <Description>Enable automatic backups.</Description>
      </Checkbox>
      <Checkbox isIndeterminate value="anomalyDetection">
        <CheckboxLabel>Anomaly Detection</CheckboxLabel>
        <Description>Enable anomaly detection.</Description>
      </Checkbox>
    </CheckboxGroup>
  )
}

Installation

npx shadcn@latest add @intentui/checkbox-group-indeterminate-demo

Usage

Usage varies by registry entry. Refer to the registry docs or source files below for details.