@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
14 lines (13 loc) • 612 B
TypeScript
import React, { type ReactElement, type Ref } from "react";
import { type PopoverPropsType } from ".";
type RefableElement = ReactElement & {
ref?: Ref<HTMLElement>;
};
export type PopoverWrapperPropsType = Omit<PopoverPropsType, "targetRef" | "children" | "isOpen"> & {
content: React.ReactNode;
disabled?: boolean;
isOpenByDefault?: boolean;
children: RefableElement;
};
export declare function PopoverWrapper({ content, children, trigger, onOpenChange, isOpenByDefault, disabled, responsive, ...popoverProps }: PopoverWrapperPropsType): import("react/jsx-runtime").JSX.Element;
export {};