Files
video-gen/video-gen-admin/node_modules/@rc-component/select/es/hooks/useComponents.d.ts
T
2026-05-25 17:08:18 +08:00

13 lines
881 B
TypeScript

import * as React from 'react';
import type { SelectInputRef, SelectInputProps } from '../SelectInput';
import type { BaseSelectProps } from '../BaseSelect';
export interface ComponentsConfig {
root?: React.ComponentType<any> | string | React.ReactElement;
input?: React.ComponentType<any> | string | React.ReactElement;
}
export interface FilledComponentsConfig {
root: React.ForwardRefExoticComponent<SelectInputProps & React.RefAttributes<SelectInputRef>>;
input: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> | (React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>)>;
}
export default function useComponents(components?: ComponentsConfig, getInputElement?: BaseSelectProps['getInputElement'], getRawInputElement?: BaseSelectProps['getRawInputElement']): ComponentsConfig;