{'headline-30 font'}
-{'headline-25 font'}
-{'subHead-18 font'}
-{'subHead-16 font'}
-{'subHead-13 font'}
-{'body-18 font'}
-{'body-16 font'}
-{'body-15 font'}
-{'body-14 font'}
-{'caption-13 font'}
-{mainTitle}
+{subTitle}
++ {description} +
+ ++ {errorMessage} +
+ > + ) : inputType === 'Search' ? ( + <> ++ {errorMessage} +
+ > + ) : ( + '' + ) + } +) + +export default Input diff --git a/src/components/common/inputbox/input/InputType.ts b/src/components/common/inputbox/input/InputType.ts new file mode 100644 index 00000000..b20fbce1 --- /dev/null +++ b/src/components/common/inputbox/input/InputType.ts @@ -0,0 +1,11 @@ +import { ComponentProps } from 'react' + +type InputType = 'Default' | 'Search' +export interface InputProps extends ComponentProps<'input'> { + inputType: InputType + fullWidth?: boolean + typo?: string + errorMessage?: string + placeholder?: string + onChange?: (e: React.ChangeEvent{errorMessage}
+{'반복'}
+ +{errorMessage}
+ > + ) + } +) + +export default Select diff --git a/src/components/common/inputbox/select/SelectType.ts b/src/components/common/inputbox/select/SelectType.ts new file mode 100644 index 00000000..352bc741 --- /dev/null +++ b/src/components/common/inputbox/select/SelectType.ts @@ -0,0 +1,13 @@ +import { ComponentProps } from 'react' + +type SelectType = 'Single' | 'Box' +export interface SelectProps extends ComponentProps<'select'> { + selectType: SelectType + value: string + options: string[] + fullWidth?: boolean + width?: number + height?: number + errorMessage?: string + onChange?: (e: React.ChangeEvent{'오후 4시에 종료'}
+ > + ), + rightTopElement: ( + <> +{'매주 월,화,수'}
+{'매주 월,화,수'}
+{pageData.mainTitle}
+{pageData.subTitle}
+{'시간표 보기'}
, + errorElement:{'학원 리스트 body'}
, + errorElement:{'학원 상세보기'}
, + errorElement:{'학원 등록'}
, + errorElement:{'reports'}
, + errorElement:{'setting page'}
, + errorElement:{'my page'}
, + errorElement: