feat: [공통] UI 컴포넌트 개선 (TabChip, FormField, Select 등)
- TabChip, FormField, MobileCard, Select 컴포넌트 개선 - IntegratedListTemplateV2, UniversalListPage 타입 보강 - LoginPage UI 개선 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -76,6 +76,8 @@ export interface FormFieldProps {
|
||||
showButtons?: boolean;
|
||||
/** 텍스트 입력 최대 길이 */
|
||||
maxLength?: number;
|
||||
/** SelectContent에 전달할 className (예: max-h-60) */
|
||||
selectContentClassName?: string;
|
||||
}
|
||||
|
||||
export function FormField({
|
||||
@@ -108,6 +110,7 @@ export function FormField({
|
||||
suffix,
|
||||
showButtons,
|
||||
maxLength,
|
||||
selectContentClassName,
|
||||
}: FormFieldProps) {
|
||||
|
||||
const renderInput = () => {
|
||||
@@ -122,7 +125,7 @@ export function FormField({
|
||||
<SelectTrigger className={`${error ? 'border-red-500' : ''} ${inputClassName}`}>
|
||||
<SelectValue placeholder={selectPlaceholder} />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectContent className={selectContentClassName}>
|
||||
{options.map((option) => (
|
||||
<SelectItem
|
||||
key={option.value}
|
||||
|
||||
Reference in New Issue
Block a user