Selected: {JSON.stringify(value)}
Selected: {JSON.stringify(value)}
```
### Group Provider
Use the `useCheckboxGroup` hook to create the checkbox group store and pass it to the `Checkbox.GroupProvider`
component. This provides maximum control over the group programmatically, similar to how `RootProvider` works for
individual checkboxes.
**Example: group-provider**
#### React
```tsx
import { Checkbox, useCheckboxGroup } from '@ark-ui/react/checkbox'
import { CheckIcon } from 'lucide-react'
const items = [
{ label: 'React', value: 'react' },
{ label: 'Solid', value: 'solid' },
{ label: 'Vue', value: 'vue' },
{ label: 'Svelte', value: 'svelte' },
]
export const GroupProvider = () => {
const group = useCheckboxGroup({
defaultValue: ['react'],
name: 'framework',
})
return (
Selected: {JSON.stringify(value)}
Selected: {JSON.stringify(value())}
Selected: {{ JSON.stringify(value) }}
Selected: {JSON.stringify(value)}