checked- Type
boolean | 'indeterminate'- Default
- -
- Description
- Controlled checked state.
Search for a command to run...
Components / Inputs
தேர்வுப்பெட்டி
Checkboxes allow users to select one or more options from a set. They communicate binary (on/off) or multi-select state.
தேர்வுப்பெட்டிகள் ஒன்று அல்லது அதிகமான விருப்பங்களை தேர்வு செய்ய அனுமதிக்கின்றன.
3 parts documented for implementation and review.
<button>Interactive 16x16px square toggle with role=checkbox and rounded-sm corners. When checked, shows brand background with white CheckIcon. Supports checked, unchecked, and indeterminate states. Keyboard: Space to toggle.
svgWhite checkmark SVG icon that appears inside the checkbox when checked. Uses brand-colored background fill. For indeterminate state, shows a horizontal dash instead.
<label>Clickable text paired via htmlFor. Clicking toggles the checkbox. Text-sm (14px). For Tamil, apply font-tamil class. Label should be descriptive and action-oriented.
checkedboolean | 'indeterminate'defaultCheckedbooleanfalseonCheckedChange(checked: boolean) => voiddisabledbooleanfalse| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | 'indeterminate' | - | Controlled checked state. |
defaultChecked | boolean | false | Uncontrolled initial state. |
onCheckedChange | (checked: boolean) => void | - | Called when state changes. |
disabled | boolean | false | Disables the checkbox. |
Label via htmlFor.checked="indeterminate") is announced to screen readers.lang="ta" or className="font-tamil".Link every checkbox to a Label via htmlFor so clicking the label text also toggles the checkbox.
ஒவ்வொரு தேர்வுப்பெட்டியையும் htmlFor மூலம் லேபிளுடன் இணைக்கவும் — லேபிளை கிளிக் செய்தாலும் தேர்வுப்பெட்டி மாறும்.
For settings that take immediate effect — like toggling dark mode — use a Switch instead of a Checkbox.
உடனடியாக அமலாகும் அமைப்புகளுக்கு Switch பயன்படுத்தவும், Checkbox அல்ல.
Use a visible group heading to label a set of checkboxes so users understand they belong together.
தொடர்புடைய தேர்வுப்பெட்டிகளை ஒரு தலைப்பின் கீழ் தொகுத்து தெளிவாக்கவும்.
Pre-checking consent checkboxes for marketing emails violates GDPR and dark-pattern guidelines.
சந்தைப்படுத்தல் மின்னஞ்சலுக்கு முன்கூட்டியே சம்மதம் தேர்வு செய்வது GDPR விதிகளை மீறும்.