-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Fix type mismatch between props and rendered element.
The Empty component is typed to accept React.ComponentProps<"p"> but renders a
element. This type mismatch can lead to confusion and potential type errors if paragraph-specific props are passed.
Apply this diff to fix the type mismatch:
-function EmptyDescription({ className, ...props }: React.ComponentProps<"p">) {
+function EmptyDescription({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
Affected component/components
Empty
How to reproduce
Not relevant
Codesandbox/StackBlitz link
No response
Logs
Not RelevantSystem Info
Not RelevantBefore submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working