@leoncik/p14-hrnet-plugin
Version:
A custom select menu component made for my 14th OpenClassrooms project
24 lines (23 loc) • 960 B
TypeScript
import React from 'react';
export interface selectMenuProps {
options: Array<string> | undefined;
customMenuRef: React.RefObject<HTMLUListElement>;
handleSelectOption: any;
width: number;
id?: string;
customButtonRef: React.RefObject<HTMLSpanElement>;
saveOption: any;
saveOptionIndex: any;
maxHeight: number;
scrollable: boolean;
offsetX: number;
offsetY: number;
optionsValues: Array<string> | undefined;
closeSelectMenu: any;
optionsFontSize: string | undefined;
mainColor: string;
optionTextColor: string;
optionTextFocus: string;
}
declare const CustomMenu: ({ options, customMenuRef, handleSelectOption, width, customButtonRef, saveOption, saveOptionIndex, maxHeight, scrollable, offsetX, offsetY, optionsValues, closeSelectMenu, optionsFontSize, mainColor, optionTextColor, optionTextFocus, id, }: selectMenuProps) => JSX.Element;
export default CustomMenu;