UNPKG

496 BTypeScriptView Raw
1import type * as React from 'react';
2import type { OptionCoreData } from './interface';
3export interface OptionProps extends Omit<OptionCoreData, 'label'> {
4 children: React.ReactNode;
5 /** Save for customize data */
6 [prop: string]: any;
7}
8export interface OptionFC extends React.FC<OptionProps> {
9 /** Legacy for check if is a Option Group */
10 isSelectOption: boolean;
11}
12/** This is a placeholder, not real render in dom */
13declare const Option: OptionFC;
14export default Option;