Skip to content

Commit

Permalink
fix #68 : react 타입 import 방식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Limgabi committed Feb 28, 2025
1 parent e1d12ff commit fce4d26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/components/text-input/text-input.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { ChangeEvent, TextareaHTMLAttributes } from 'react';

import * as styles from './text-input.styles';

/** text-input 컴포넌트의 상태 (ex. error, success, warning, ..) */
export type TextInputStatusType = 'error';

interface TextInputProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
interface TextInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
// 기본 값
value?: string;
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;

// UI 관련
placeholder?: string;
Expand Down

0 comments on commit fce4d26

Please sign in to comment.