@hhgtech/hhg-components
Version:
Hello Health Group common components
30 lines (29 loc) • 978 B
TypeScript
import React, { CSSProperties } from 'react';
export type Option = {
label: string | JSX.Element;
value: string | Date | number;
icon?: JSX.Element;
disabled?: boolean;
};
export type Props = {
options: Array<Option>;
placeholder: string;
disabled?: boolean;
id: string;
size?: 'sm' | 'md' | 'lg';
placeholderIcon?: JSX.Element;
onChange?: (o: Option) => void;
value?: Option;
className?: string;
style?: CSSProperties;
groupedWithLabel?: string | JSX.Element;
dropdownLabelTrackingAttributes?: {
[key: string]: string;
};
isNativeSelect?: boolean;
};
/**
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
*/
declare const Dropdown: ({ className, value, options, onChange, id, placeholderIcon, placeholder, style, size, groupedWithLabel, disabled, dropdownLabelTrackingAttributes, isNativeSelect, }: Props) => React.JSX.Element;
export { Dropdown };