UNPKG

monday-ui-react-core

Version:

Official monday.com UI resources for application development in React.js

22 lines (21 loc) 783 B
import { KeyboardEvent, MouseEvent, UIEvent } from "react"; export default function useIconProps({ onClick, className, clickable, ignoreFocusStyle, isDecorationOnly, iconLabel, externalTabIndex }: { onClick?: (event: UIEvent) => void; className?: string; clickable?: boolean; ignoreFocusStyle?: boolean; isDecorationOnly?: boolean; iconLabel?: string; externalTabIndex?: number | undefined; }): { screenReaderAccessProps: { "aria-label": string; role: string; tabIndex: number; "aria-hidden": boolean; }; onClickCallback: (event: MouseEvent) => void; computedClassName: string; onEnterCallback: (event: KeyboardEvent) => void; iconRef: import("react").MutableRefObject<any>; };