15 lines
486 B
TypeScript
15 lines
486 B
TypeScript
import * as React from 'react';
|
|
import { OptionCoreData } from './interface';
|
|
export interface OptionProps extends Omit<OptionCoreData, 'label'> {
|
|
children: React.ReactNode;
|
|
/** Save for customize data */
|
|
[prop: string]: any;
|
|
}
|
|
export interface OptionFC extends React.FC<OptionProps> {
|
|
/** Legacy for check if is a Option Group */
|
|
isSelectOption: boolean;
|
|
}
|
|
/** This is a placeholder, not real render in dom */
|
|
declare const Option: OptionFC;
|
|
export default Option;
|