Skip to content

Commit 1ee31eb

Browse files
authored
feat: export individual components to allow for tree shaking (#96)
feat: export individual components
1 parent bbcd0fe commit 1ee31eb

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

cmdk/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
},
2525
"devDependencies": {
2626
"@types/react": "18.0.15"
27-
}
27+
},
28+
"sideEffects": false
2829
}

cmdk/src/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,20 @@ const pkg = Object.assign(Command, {
831831
Empty,
832832
Loading,
833833
})
834+
834835
export { useCmdk as useCommandState }
835836
export { pkg as Command }
836837

838+
export { Command as CommandRoot }
839+
export { List as CommandList }
840+
export { Item as CommandItem }
841+
export { Input as CommandInput }
842+
export { Group as CommandGroup }
843+
export { Separator as CommandSeparator }
844+
export { Dialog as CommandDialog }
845+
export { Empty as CommandEmpty }
846+
export { Loading as CommandLoading }
847+
837848
/**
838849
*
839850
*

0 commit comments

Comments
 (0)