We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c120844 commit 9e732f7Copy full SHA for 9e732f7
src/Tag.tsx
@@ -149,7 +149,7 @@ export const Tag = memo(
149
</button>
150
)}
151
{linkProps === undefined && nativeButtonProps === undefined && (
152
- <span
+ <p
153
{...nativeSpanProps}
154
id={id_props ?? nativeSpanProps?.id ?? id}
155
className={cx(nativeSpanProps?.className, className)}
@@ -158,11 +158,11 @@ export const Tag = memo(
158
...style
159
}}
160
title={title ?? nativeSpanProps?.title}
161
- ref={ref as React.ForwardedRef<HTMLSpanElement>}
+ ref={ref as React.ForwardedRef<HTMLParagraphElement>}
162
{...rest}
163
>
164
{children}
165
- </span>
+ </p>
166
167
</>
168
);
0 commit comments