1 |
|
2 | import { ReactNode, RefCallback } from 'react';
|
3 | import { jsx } from '@emotion/react';
|
4 | import { CommonPropsAndClassName, CSSObjectWithLabel, GroupBase } from '../types';
|
5 | export interface OptionProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
6 |
|
7 | children: ReactNode;
|
8 |
|
9 | innerRef: RefCallback<HTMLDivElement>;
|
10 |
|
11 | innerProps: JSX.IntrinsicElements['div'];
|
12 |
|
13 | label: string;
|
14 | |
15 |
|
16 | type: 'option';
|
17 |
|
18 | data: Option;
|
19 |
|
20 | isDisabled: boolean;
|
21 |
|
22 | isFocused: boolean;
|
23 |
|
24 | isSelected: boolean;
|
25 | }
|
26 | export declare const optionCSS: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ isDisabled, isFocused, isSelected, theme: { spacing, colors }, }: OptionProps<Option, IsMulti, Group>, unstyled: boolean) => CSSObjectWithLabel;
|
27 | declare const Option: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: OptionProps<Option, IsMulti, Group>) => jsx.JSX.Element;
|
28 | export default Option;
|