diff --git a/packages/design-system/packages/core/src/components/checkbox/Checkbox.tsx b/packages/design-system/packages/core/src/components/checkbox/Checkbox.tsx index 37128cd4..4f2c8204 100644 --- a/packages/design-system/packages/core/src/components/checkbox/Checkbox.tsx +++ b/packages/design-system/packages/core/src/components/checkbox/Checkbox.tsx @@ -10,7 +10,7 @@ interface CheckboxProps React.InputHTMLAttributes, HTMLInputElement > { - label?: React.ReactNode | string + label?: React.ReactNode color?: keyof CheckboxVariants['color'] round?: keyof CheckboxVariants['round'] } diff --git a/packages/design-system/packages/core/src/components/select/Select.stories.tsx b/packages/design-system/packages/core/src/components/select/Select.stories.tsx index 1ced50c5..7de05504 100644 --- a/packages/design-system/packages/core/src/components/select/Select.stories.tsx +++ b/packages/design-system/packages/core/src/components/select/Select.stories.tsx @@ -76,7 +76,7 @@ const meta: Meta = { description: '셀렉트 박스의 label을 지정합니다.', control: 'text', table: { - type: { summary: 'ReactNode | string' }, + type: { summary: 'ReactNode' }, defaultValue: { summary: 'undefined' }, }, }, @@ -92,7 +92,7 @@ const meta: Meta = { description: '셀렉트 박스의 설명(하단 텍스트)을 지정합니다.', control: 'text', table: { - type: { summary: 'ReactNode | string' }, + type: { summary: 'ReactNode' }, defaultValue: { summary: 'undefined' }, }, }, diff --git a/packages/design-system/packages/core/src/components/select/Select.type.ts b/packages/design-system/packages/core/src/components/select/Select.type.ts index 23da0086..df1ac484 100644 --- a/packages/design-system/packages/core/src/components/select/Select.type.ts +++ b/packages/design-system/packages/core/src/components/select/Select.type.ts @@ -27,8 +27,8 @@ export interface SelectContainerProps round?: keyof SelectVariants['round'] withBackground?: boolean mobile?: boolean - label?: React.ReactNode | string - description?: React.ReactNode | string + label?: React.ReactNode + description?: React.ReactNode } export interface SelectProps diff --git a/packages/design-system/packages/core/src/components/text-input/TextInput.stories.tsx b/packages/design-system/packages/core/src/components/text-input/TextInput.stories.tsx index ddb875ce..7951f3b2 100644 --- a/packages/design-system/packages/core/src/components/text-input/TextInput.stories.tsx +++ b/packages/design-system/packages/core/src/components/text-input/TextInput.stories.tsx @@ -68,7 +68,7 @@ const meta: Meta = { description: '인풋의 label을 지정합니다.', control: 'text', table: { - type: { summary: 'ReactNode | string' }, + type: { summary: 'ReactNode' }, defaultValue: { summary: 'undefined' }, }, }, @@ -84,7 +84,7 @@ const meta: Meta = { description: '인풋의 설명(하단 텍스트)을 지정합니다.', control: 'text', table: { - type: { summary: 'ReactNode | string' }, + type: { summary: 'ReactNode' }, defaultValue: { summary: 'undefined' }, }, }, diff --git a/packages/design-system/packages/core/src/components/text-input/TextInput.tsx b/packages/design-system/packages/core/src/components/text-input/TextInput.tsx index 5cc04a63..736028b6 100644 --- a/packages/design-system/packages/core/src/components/text-input/TextInput.tsx +++ b/packages/design-system/packages/core/src/components/text-input/TextInput.tsx @@ -18,8 +18,8 @@ interface TextProps size?: keyof TextInputVariant['size'] round?: keyof TextInputVariant['round'] withBackground?: boolean - label?: React.ReactNode | string - description?: React.ReactNode | string + label?: React.ReactNode + description?: React.ReactNode } const TextInput = React.forwardRef(