Skip to content

Conversation

@johnleider
Copy link
Member

@johnleider johnleider commented Jan 5, 2026

In development

Copilot AI review requested due to automatic review settings January 5, 2026 03:00
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 5, 2026

Open in StackBlitz

commit: f56e805

This comment was marked as spam.

@vuetifyjs vuetifyjs deleted a comment from Copilot AI Jan 5, 2026
@johnleider johnleider marked this pull request as draft January 5, 2026 23:01
@johnleider johnleider added this to the v0.1.0 milestone Jan 8, 2026
- CheckboxRoot: group context provider with tri-state support
- CheckboxIndicator: works standalone (v-model) or in group context
- Renders as button by default, supports renderless mode
- Full a11y: role, aria-checked (true/false/mixed), aria-disabled, tabindex
- 35 tests covering standalone, group, SSR modes
- Rename CheckboxRoot → CheckboxGroup (group context provider)
- New CheckboxRoot handles registration + item context
- CheckboxIndicator now purely presentational
- Export as Checkbox.Group, Checkbox.Root, Checkbox.Indicator
- Add keyboard interaction (Space to toggle) and click handler
- Add aria-label from label prop for accessible name
- Add role="group" to CheckboxGroup attrs
- Fix slot return type: any → unknown
- Fix context mode: use static key 'v0:checkbox:root'
- Fix data-disabled: '' → true for consistency
- Use Readonly<Ref<boolean>> for context types
- Add defineEmits alongside defineModel
- Change slot return types to match Root/Item convention
- Add keyboard interaction tests (Space, Enter, disabled)
- Add component docs with basic, group, and select-all examples
Reorganize checkbox documentation from providers to new forms category.
Import was referencing non-existent #v0/composables/useGroup path,
causing typecheck to fail. Also adds test for Indicator context error.

Fixes knip config to ignore tsx binary used by generate:web-types script.
…ers element

Root now renders as button via Atom with ARIA attrs and click/keydown handlers.
Indicator simplified to visual span with visibility toggle (no layout shift).
Group now renders div with role="group" and aria-multiselectable.
- Simplify basic.vue and group.vue to use data-state CSS selectors
- Remove select-all.vue example (removed from docs)
- Add Checkbox to shiki-api-transformer whitelist for hover popovers
- Reorder component nav: primitives, providers, disclosure, forms, semantic
- Update accessibility section to reflect Root handles ARIA
@johnleider johnleider changed the title feat(Checkbox): add headless checkbox component with dual-mode support feat(Checkbox): add new component Jan 10, 2026
- Add CheckboxHiddenInput component for native form submission
- Auto-render hidden input when `name` prop is provided on Root
- Add `name` and `form` props to CheckboxRoot context
- Fix class pass-through by using inheritAttrs: false with useAttrs()
- Add 12 tests covering auto-render, explicit usage, and group mode
@johnleider johnleider self-assigned this Jan 10, 2026
@johnleider johnleider marked this pull request as ready for review January 10, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant