/** * Copyright Schrodinger, LLC * * @fileoverview Dropdown picker */ import React, { PureComponent } from 'react'; import { SelectOption } from './types'; export declare class Option extends PureComponent { static defaultProps: { search: string; }; render(): JSX.Element; renderValue(): string | Array<(JSX.Element | string | null)>; onClick: () => void; } /** * Props */ export interface Props { /** * Option's internal value (id) */ optionKey: SelectOption['key']; /** * Option's display value */ value: SelectOption['value']; /** * onClick event handler */ onClick: (key: SelectOption['key']) => void; /** * Extra classes for the list item */ className?: string; /** * Search filter (if any), used to highlight matches */ search: string; /** * Option is disabled */ disabled?: boolean; /** * CSS Styling */ style?: React.CSSProperties; }