Skip to content

Commit f9e4991

Browse files
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 d12ddaa. * 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>
1 parent 67e7364 commit f9e4991

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/www/registry/registry-ui.ts

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const ui: Registry["items"] = [
8181
{
8282
name: "badge",
8383
type: "registry:ui",
84+
dependencies: ["@radix-ui/react-slot"],
8485
files: [
8586
{
8687
path: "ui/badge.tsx",

0 commit comments

Comments
 (0)