UNPKG

@mui/core

Version:

Unstyled React components with which to implement custom design systems.

14 lines (13 loc) 527 B
import * as React from 'react'; import UseButtonProps from './UseButtonProps'; export default function useButton(props: UseButtonProps): { getRootProps: (otherHandlers?: Record<string, (event: any) => void> | undefined) => { tabIndex: number; type: "button" | "reset" | "submit" | undefined; ref: (instance: HTMLElement | null) => void; }; focusVisible: boolean; setFocusVisible: React.Dispatch<React.SetStateAction<boolean>>; disabled: boolean; active: boolean; };