Skip to content

Commit

Permalink
Checkbox SVG 사이즈 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
baegofda committed Aug 13, 2024
1 parent 0dc73a5 commit 19a45ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/core/components/Checkbox/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { GapType, SvgSizeType } from '../types';
export const SVG_SIZE = {
SIZE_32: 'size-32',
SIZE_24: 'size-24',
SIZE_20: 'size-20',
SIZE_16: 'size-16',
} as const;

Expand All @@ -17,6 +18,7 @@ export const GAP = {
export const CHECKBOX_SVG_SIZE: Record<SvgSizeType, string> = {
[SVG_SIZE['SIZE_32']]: 'w-8 h-8',
[SVG_SIZE['SIZE_24']]: 'w-6 h-6',
[SVG_SIZE['SIZE_20']]: 'w-5 h-5',
[SVG_SIZE['SIZE_16']]: 'w-4 h-4',
};

Expand Down
4 changes: 2 additions & 2 deletions src/core/components/Checkbox/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { CheckCircle, CheckSquare } from '@phosphor-icons/react';
import clsx from 'clsx';
import React, { forwardRef, MouseEvent, useId } from 'react';

import { CheckCircle, CheckSquare } from '@phosphor-icons/react';
import { GAP } from '@/core/components/Button/ButtonBase/constants';
import Typography from '../Typography';
import { CHECK_BOX_GAP, CHECKBOX_SVG_SIZE, SVG_SIZE } from './constants';
import { CheckboxProps } from './types';
import { GAP } from '@/core/components/Button/ButtonBase/constants';

const Checkbox = forwardRef(
(
Expand Down

0 comments on commit 19a45ac

Please sign in to comment.