UNPKG

@uva-glass/component-library

Version:

React components UvA

16 lines (15 loc) 795 B
import { AriaButtonProps } from '@react-aria/button'; import { IconProps } from 'components/Icon'; import { MouseEvent, RefObject } from 'react'; import { UIButtonVariant } from 'types/UserInterface'; export interface MenuButtonProps extends AriaButtonProps<'button'> { buttonRef: RefObject<HTMLButtonElement>; /** The variant of the button. */ variant: UIButtonVariant; /** The icon to show. */ iconName?: IconProps['name']; /** The callback function that is invoked when the button is clicked. */ onClick?: (event: MouseEvent<HTMLButtonElement>) => void; } /** Represents a button that is used to open a menu. */ export declare function MenuButton({ buttonRef, variant, iconName, children, ...restProps }: MenuButtonProps): import("react/jsx-runtime").JSX.Element;