Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Chip 컴포넌트 구현 #137

Merged
merged 12 commits into from
Aug 10, 2024
Prev Previous commit
Next Next commit
refactor: style prop이 2개 이상인 컴포넌트들에 대해 interface로 추출
  • Loading branch information
fecapark committed Aug 1, 2024
commit 38ea4512781894ff2762177d83e9aaa80f5ebc17
6 changes: 4 additions & 2 deletions src/components/Chip/Chip.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { styled } from 'styled-components';

import { ChipSizeType } from '@/components/Chip/Chip.type';

export const StyledChipContainer = styled.div<{
interface StyledChipContainerProps {
$size: ChipSizeType;
$selected: boolean;
$disabled: boolean;
$isRoleInput: boolean;
}>`
}

export const StyledChipContainer = styled.div<StyledChipContainerProps>`
display: inline-flex;
align-items: center;
gap: 4px;
Expand Down