UNPKG

@leoncik/p14-hrnet-plugin

Version:

A custom select menu component made for my 14th OpenClassrooms project

30 lines (29 loc) 1.23 kB
import React from 'react'; import './SelectMenu.css'; export interface selectMenuProps { options?: Array<string>; optionsValues?: Array<string> | undefined; label?: string; id?: string; inputRef?: React.RefObject<HTMLOptionElement> | undefined; width?: number; className?: string; disabled?: boolean; maxHeight?: number; scrollable?: boolean; offsetX?: number; offsetY?: number; buttonIconPath?: string; showButtonIcon?: boolean; rotateButtonIcon?: boolean; optionsFontSize?: string | undefined; mainColor?: string; optionTextColor?: string; optionTextFocus?: string; buttonTextColor?: string; buttonTextHoverColor?: string; buttonBackgroundHoverColor?: string; buttonTextActiveColor?: string; } declare const SelectMenu: ({ label, id, options, inputRef, width, className, disabled, maxHeight, scrollable, offsetX, offsetY, buttonIconPath, showButtonIcon, optionsValues, rotateButtonIcon, optionsFontSize, mainColor, optionTextColor, optionTextFocus, buttonBackgroundHoverColor, buttonTextColor, buttonTextHoverColor, buttonTextActiveColor, }: selectMenuProps) => JSX.Element; export default SelectMenu;