diff --git a/src/components/Tag/Tag.stories.tsx b/src/components/Tag/Tag.stories.tsx index 4a5297441..faddd1e64 100644 --- a/src/components/Tag/Tag.stories.tsx +++ b/src/components/Tag/Tag.stories.tsx @@ -29,7 +29,15 @@ export const ColorVariants: StoryObj = { render: (args) => (
{VARIANTS.map((variant) => { - return ; + return ( + + ); })}
), diff --git a/src/components/Tag/Tag.tsx b/src/components/Tag/Tag.tsx index 25974dcbd..6aba640fb 100644 --- a/src/components/Tag/Tag.tsx +++ b/src/components/Tag/Tag.tsx @@ -52,6 +52,7 @@ export const Tag = ({ icon, text, hasOutline = false, + ...other }: Props) => { const componentClassName = clsx( styles['tag'], @@ -61,7 +62,13 @@ export const Tag = ({ ); return ( - + {icon} {text && {text}} diff --git a/src/components/Tag/__snapshots__/Tag.test.ts.snap b/src/components/Tag/__snapshots__/Tag.test.ts.snap index 57ec7f0aa..1b4c5c757 100644 --- a/src/components/Tag/__snapshots__/Tag.test.ts.snap +++ b/src/components/Tag/__snapshots__/Tag.test.ts.snap @@ -6,6 +6,7 @@ exports[` ColorVariants story renders snapshot 1`] = ` > ColorVariants story renders snapshot 1`] = ` ColorVariants story renders snapshot 1`] = ` ColorVariants story renders snapshot 1`] = ` ColorVariants story renders snapshot 1`] = ` ColorVariants story renders snapshot 1`] = `