Skip to content

Commit

Permalink
✨feat: Tag 컴포넌트 borderWidth 옵션 추가하기 #15
Browse files Browse the repository at this point in the history
  • Loading branch information
naarang committed Oct 21, 2024
1 parent 720d220 commit f3a55c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Common/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type TagProps = {
onDelete?: (value: string) => void; // 삭제 버튼 클릭 시 호출될 함수
hasCheckIcon: boolean; // 왼쪽에 체크 아이콘 표시 여부
borderColor?: string;
borderWidth?: string;
backgroundColor: string;
color: string;
fontStyle: string; // typography type
Expand All @@ -20,6 +21,7 @@ const Tag = ({
onDelete,
hasCheckIcon,
borderColor,
borderWidth = '0.5px',
backgroundColor,
color,
fontStyle,
Expand All @@ -33,7 +35,7 @@ const Tag = ({
color: color,
borderColor: borderColor,
borderStyle: borderColor ? 'solid' : 'none',
borderWidth: '0.5px',
borderWidth: borderWidth,
}}
>
{hasCheckIcon && <TagCheckIcon color={color} />}
Expand Down

0 comments on commit f3a55c5

Please sign in to comment.