mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-02 17:08:39 +00:00
36a9c1bb716fc670d578a44bcd801bc5257961c6
# Fix Command Component issues and update documentation
## Changes
- Resolve Command Component issues by wrapping `<CommandGroup />` inside `<CommandList>`
- Update deprecated docs in `combobox.mdx` to reflect latest `<Command />` component usage
### Code Changes
From:
```tsx
<Command>
...
<CommandGroup>
...
</CommandGroup>
</Command>
```
To:
```tsx
<Command>
...
<CommandList>
<CommandGroup>
...
</CommandGroup>
</CommandList>
</Command>
```
## Visual Comparison
Before & After comparison:
https://github.com/shadcn-ui/ui/assets/77154365/156b7180-54e6-45aa-8934-b4fb99e6160e
## Summary
By wrapping `<CommandGroup />` inside `<CommandList>{children}</CommandList>`, all issues related to the Command Component have been resolved.
shadcn/ui
Accessible and customizable components that you can copy and paste into your apps. Free. Open Source. Use this to build your own component library.
Documentation
Visit http://ui.shadcn.com/docs to view the documentation.
Contributing
Please read the contributing guide.
License
Licensed under the MIT license.
Description
Languages
TypeScript
89.8%
MDX
6.8%
CSS
3.3%
