From 3d7a2c09bbd33a154ce940ecad094d4679cc7246 Mon Sep 17 00:00:00 2001 From: Brokyeom Date: Fri, 22 Nov 2024 02:11:19 +0900 Subject: [PATCH 1/2] feat: Add restProps in Tag Component --- packages/ui/Tag/Tag.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}
); From 435febf3164e2408d73d3a8d397bf04ad340a370 Mon Sep 17 00:00:00 2001 From: Brokyeom Date: Fri, 22 Nov 2024 02:11:48 +0900 Subject: [PATCH 2/2] cs --- .changeset/cold-owls-rule.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/cold-owls-rule.md 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.