mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-02 17:08:39 +00:00
Add @radix-ui/react-slot dependency to badge registry entry (#6841)
* Add dependency to badge registry entry
Added @radix-ui/react-slot as a dependency for the badge component in the registry. This ensures proper functionality and resolves potential missing dependency issues.
- Updated the "badge" registry entry by including "@radix-ui/react-slot" in its dependencies list.
- Fixed the missing newline at the end of the file for better formatting.
* Revert "Add dependency to badge registry entry"
This reverts commit d12ddaa511.
* Add Radix slot dependency to badge registry entry
Included @radix-ui/react-slot as a dependency for the badge component in the registry. This change ensures the component functions as intended and avoids potential runtime errors.
- Updated "badge" registry entry dependencies list.
- Fixed formatting by adding a missing newline at the file end.
---------
Co-authored-by: shadcn <m@shadcn.com>
This commit is contained in:
committed by
GitHub
parent
67e7364b3c
commit
f9e4991f15
@@ -81,6 +81,7 @@ export const ui: Registry["items"] = [
|
||||
{
|
||||
name: "badge",
|
||||
type: "registry:ui",
|
||||
dependencies: ["@radix-ui/react-slot"],
|
||||
files: [
|
||||
{
|
||||
path: "ui/badge.tsx",
|
||||
|
||||
Reference in New Issue
Block a user