v0.8.1
@tinybigui/react 0.8.1
Checkbox — MD3 Variants-vs-States Architecture
Rewrites Checkbox styling to match the slot-based CVA pattern used by Switch:
- All interaction/selection states (hover, focus-visible, pressed, selected, disabled, invalid, indeterminate) are now expressed as
data-*attributes on the root element viagetInteractionDataAttributes, consumed bygroup-data-[x]/checkboxTailwind selectors in each slot - Replaces the
animate-pulseSVG focus ring with a proper MD3 focus-ring slot (outline, opacity transition via*-spring-standard-fast-effects) - Replaces hardcoded
duration-200with MD3 motion token pairs: effects transitions use*-spring-standard-fast-effects, spatial transitions use*-spring-standard-fast-spatial - State-layer opacities corrected to MD3 spec: hover 8%, focus/pressed 10%
- Box visual now uses a
divwithborder-2 rounded-[2px]+ spec-accurate 18dp SVG icons in dedicatedCheckbox.icons.tsxmodule - Exports updated to new slot variant names (
checkboxRootVariants,checkboxControlVariants,checkboxStateLayerVariants,checkboxFocusRingVariants,checkboxBoxVariants,checkboxIconVariants,checkboxLabelVariants)
No behavioral or API changes — CheckboxProps and React Aria integration are unchanged.
Full Changelog: v0.8.0...v0.8.1