welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
16 lines (15 loc) • 789 B
TypeScript
import * as Ariakit from '@ariakit/react';
export type UsePopover = Ariakit.PopoverStore & Pick<UsePopoverProps, 'withCloseButton'>;
export type UsePopoverHover = Ariakit.HovercardStore & Pick<UsePopoverHoverProps, 'withCloseButton'>;
export interface UsePopoverHoverProps extends Ariakit.HovercardStoreProps {
withCloseButton?: WithCloseButton;
}
export type UsePopoverHoverState = Ariakit.HovercardStoreState;
export interface UsePopoverProps extends Ariakit.PopoverStoreProps {
withCloseButton?: WithCloseButton;
}
export type UsePopoverState = Ariakit.PopoverStoreState;
type WithCloseButton = boolean;
export declare const usePopover: (props?: UsePopoverProps) => UsePopover;
export declare const usePopoverHover: (props?: UsePopoverHoverProps) => UsePopoverHover;
export {};