diff --git a/.changeset/cold-owls-rule.md b/.changeset/cold-owls-rule.md new file mode 100644 index 0000000..7473946 --- /dev/null +++ b/.changeset/cold-owls-rule.md @@ -0,0 +1,5 @@ +--- +'@sopt-makers/ui': patch +--- + +Add restProps in Tag Component. diff --git a/packages/ui/Tag/Tag.tsx b/packages/ui/Tag/Tag.tsx index 79c9f48..b86311b 100644 --- a/packages/ui/Tag/Tag.tsx +++ b/packages/ui/Tag/Tag.tsx @@ -11,11 +11,11 @@ export interface TagProps extends HTMLAttributes { } export const Tag = forwardRef((props, forwardedRef) => { - const { children, size = 'sm', shape = 'rect', variant = 'default', type = 'solid' } = props; + const { children, size = 'sm', shape = 'rect', variant = 'default', type = 'solid', ...restProps } = props; const style = createTagStyle(type, variant, shape, size); return ( -
+
{children}
);