File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
apps/website/src/routes/docs/headless/checkbox/examples
packages/kit-headless/src/components/checkbox Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ import { Checkbox } from '@qwik-ui/headless';
3
3
export default component$ ( ( ) => {
4
4
return (
5
5
< >
6
- < Checkbox . Root class = "flex items-center gap-3 border-2 border-black p-2 " >
6
+ < Checkbox . Root id = "test" class = "flex items-center gap-3 border-2 border-black p-2 " >
7
7
< Checkbox . Indicator class = "flex h-[25px] w-[25px] items-center justify-center bg-slate-600" >
8
8
✅
9
9
</ Checkbox . Indicator >
10
- I have read the README file
11
10
</ Checkbox . Root >
11
+ < label for = "test" > I work</ label >
12
+ < div >
13
+ < div role = "checkbox" id = "test2" />
14
+ < label for = "test2" > testhere</ label >
15
+ </ div >
12
16
</ >
13
17
) ;
14
18
} ) ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const Checklist: Component<CheckListProps> = (props: CheckListProps) => {
43
43
Object . assign ( typedProps , { _useCheckListContext : true } ) ;
44
44
checkArr . push ( child ) ;
45
45
// TODO: fix this if hell by making fn
46
- if ( ! typedProps . checkList ) {
46
+ if ( ! typedProps . checklist ) {
47
47
checklistChilds . push ( child ) ;
48
48
49
49
if ( typedProps . id != undefined ) {
Original file line number Diff line number Diff line change 1
1
import { Signal , createContextId } from '@builder.io/qwik' ;
2
- import { TriBool } from './checklist-context-wrapper ' ;
2
+ import { TriBool } from '.. /checklist' ;
3
3
4
4
export type ArrSigs = Signal < boolean > [ ] ;
5
5
type CheckContextObj = {
You can’t perform that action at this time.
0 commit comments