material-ui-popup-state
Version:
easiest way to create menus, popovers, and poppers with material-ui
41 lines (39 loc) • 763 B
Flow
// @flow
import * as React from 'react'
import {
anchorRef,
bindTrigger,
bindContextMenu,
bindToggle,
bindHover,
bindFocus,
bindMenu,
bindPopover,
bindPopper,
bindDoubleClick,
bindDialog,
type Variant,
type PopupState as InjectedProps,
} from './hooks'
export {
anchorRef,
bindTrigger,
bindContextMenu,
bindToggle,
bindHover,
bindFocus,
bindMenu,
bindPopover,
bindPopper,
bindDoubleClick,
bindDialog,
}
export type { Variant, InjectedProps }
export type Props = {|
popupId?: string,
children: (props: InjectedProps) => React.Node | null,
variant: Variant,
parentPopupState?: InjectedProps | null,
disableAutoFocus?: boolean | null,
|}
declare export default function PopupState(props: Props): React.Node