UNPKG

@devopness/ui-react

Version:

Devopness Design System React Components - Painless essential DevOps to everyone

27 lines (26 loc) 850 B
import { default as React } from 'react'; /** * Props for `PopoverPopupState` component */ type PopoverPopupStateProps = { /** Element that triggers the popover */ trigger: React.ReactNode; /** Content displayed inside the popover */ children: React.ReactNode; }; /** * `PopoverPopupState` wraps Material-UI Popover with `material-ui-popup-state` * for easy popup handling. * * Provides a button trigger and content popover, handling open/close state automatically. * * @example * <PopoverPopupState * trigger={<IconLoader accessorName="more" size={20} />} * > * <div>Popover content here</div> * </PopoverPopupState> */ declare const PopoverPopupState: ({ trigger, children }: PopoverPopupStateProps) => import("react/jsx-runtime").JSX.Element; export type { PopoverPopupStateProps }; export { PopoverPopupState };