@aveonline/ui-react
Version:
Home base for Aveonline design system - ecosystem react
25 lines (24 loc) • 743 B
TypeScript
import type { ISelect, IOption } from '../Select';
import type { IKind } from '../../../atoms/Icon';
import type { Align } from '../../../atoms/Button';
export interface IOptionSelectButton {
notSelect?: boolean;
icon?: IKind;
label?: string | number;
value?: string | number;
options?: IOption[];
}
export interface ISelectButton extends Omit<ISelect, 'options'> {
/**
* Array of options that populate the select menu
*/
options: IOptionSelectButton[];
/**
* Handle click for first element, options no selectable, only emit click
*/
onClickFirstItem?: (value: IOptionSelectButton) => void;
/**
* Position align children elements atom[Button]
*/
alignButton?: Align;
}