feat: Introduce new form field components and enhance existing ones with label options

This commit is contained in:
twwu
2025-04-26 21:50:21 +08:00
parent b1fbaaed95
commit d12e9b81e3
18 changed files with 435 additions and 81 deletions

View File

@ -39,8 +39,8 @@ export type CustomSelectProps<T extends Option> = {
itemClassName?: string
title?: string
},
CustomTrigger?: (option: T | undefined, open: boolean) => React.ReactNode
CustomOption?: (option: T, selected: boolean) => React.ReactNode
CustomTrigger?: (option: T | undefined, open: boolean) => React.JSX.Element
CustomOption?: (option: T, selected: boolean) => React.JSX.Element
}
const CustomSelect = <T extends Option>({
options,