AhaSlides Design
v0.52.0React · Vue · Lit

Components · Forms

Checkbox

Let a user turn one or more independent options on or off.

Examples

State
Indeterminate
Disabled
Checkbox · the playground drives this one element (State · Indeterminate · Disabled)
Let participants join anonymously
States · rest · checked · indeterminate · disabled
Show correct answers Anonymous join Some selected Locked option Locked on
Group · a select-all that drives indeterminate
Select all slide types
Poll Quiz Q&A

API

PropTypeDefaultNotes
checkedbooleanfalseControlled selection
indeterminatebooleanfalseMixed state for check-all
disabledbooleanfalseDisables the control
changeCustomEvent<{checked}>Composed event; read e.detail.checked

Install

# .npmrc — once: point the @ahaslides-product scope at GitHub Packages
@ahaslides-product:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}   # a GitHub token with read:packages

npm i @ahaslides-product/design
import '@ahaslides-product/design/tokens.css';   // once, at the app root
import '@ahaslides-product/design/aha-checkbox';   // registers <aha-checkbox>

Agent feed for this component (absolute, fetchable anywhere): checkbox.agent.json · checkbox.md · checkbox.llms.txt

When to use

When to use
  • Checkbox — one or more independent options; applies on submit
  • Radio — exactly one from a small mutually-exclusive set
  • Switch — a single setting that takes effect immediately
Labels are sentence case and state what the control does — 'Let participants join anonymously', not 'Join Anonymously'. Keep product nouns: Q&A, Word cloud.
Surfaces
editor dashboard settings audience

Spec

Box 14×14 r4 · Rest border #B4BCCF · Hover border #D3B4FF · Checked fill #6A1EBB + white 12px tick · Label Plus Jakarta 14/21