File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ export type TagProps = TagProps.Common &
24
24
( TagProps . WithIcon | TagProps . WithoutIcon ) &
25
25
( TagProps . AsAnchor | TagProps . AsButton | TagProps . AsParagraph | TagProps . AsSpan ) ;
26
26
export namespace TagProps {
27
+ export type HTMLElement =
28
+ | HTMLButtonElement
29
+ | HTMLAnchorElement
30
+ | HTMLParagraphElement
31
+ | HTMLSpanElement ;
32
+
27
33
export type Common = {
28
34
id ?: string ;
29
35
className ?: string ;
@@ -92,10 +98,7 @@ export namespace TagProps {
92
98
93
99
/** @see <https://components.react-dsfr.codegouv.studio/?path=/docs/components-tag> */
94
100
export const Tag = memo (
95
- forwardRef <
96
- HTMLButtonElement | HTMLAnchorElement | HTMLParagraphElement | HTMLSpanElement ,
97
- TagProps
98
- > ( ( props , ref ) => {
101
+ forwardRef < TagProps . HTMLElement , TagProps > ( ( props , ref ) => {
99
102
const {
100
103
id : id_props ,
101
104
className : prop_className ,
You can’t perform that action at this time.
0 commit comments