Skip to content

Commit

Permalink
feat: export individual components to allow for tree shaking (#96)
Browse files Browse the repository at this point in the history
feat: export individual components
  • Loading branch information
Pagebakers authored Mar 2, 2023
1 parent bbcd0fe commit 1ee31eb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
},
"devDependencies": {
"@types/react": "18.0.15"
}
},
"sideEffects": false
}
11 changes: 11 additions & 0 deletions cmdk/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -831,9 +831,20 @@ const pkg = Object.assign(Command, {
Empty,
Loading,
})

export { useCmdk as useCommandState }
export { pkg as Command }

export { Command as CommandRoot }
export { List as CommandList }
export { Item as CommandItem }
export { Input as CommandInput }
export { Group as CommandGroup }
export { Separator as CommandSeparator }
export { Dialog as CommandDialog }
export { Empty as CommandEmpty }
export { Loading as CommandLoading }

/**
*
*
Expand Down

1 comment on commit 1ee31eb

@vercel
Copy link

@vercel vercel bot commented on 1ee31eb Mar 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cmdk-website – ./

cmdk-website-paco.vercel.app
cmdk-website-git-main-paco.vercel.app
cmdk.vercel.app
cmdk.paco.me

Please sign in to comment.