AoE2CN Component

Checkbox

An accessible Radix-backed selection control with checked, indeterminate, focus-visible, and disabled states.

pnpm dlx shadcn@latest add @aoe2cn/checkbox

Values

Interaction states

Usage contract

Built to be edited in your project

Installation copies source, shared styles, local fonts, and required assets into your configured UI directory.

API notes

  • Current Radix Checkbox root props
  • Boolean and indeterminate checked values
  • Native id and aria label pairing

Covered states

  • Unchecked, checked, and indeterminate
  • Pointer and keyboard activation
  • Hover, focus-visible, and disabled

Customization

  • --aoe2cn-crimson-*
  • --aoe2cn-gold-*
  • --aoe2cn-focus
  • --aoe2cn-disabled-opacity