@clubmed/trident-ui
Version:
Shared ClubMed React UI components
24 lines (23 loc) • 684 B
TypeScript
import { ComponentProps, FunctionComponent, MouseEvent, PropsWithChildren } from 'react';
import { Portal } from './Portal';
export interface BackdropProps extends ComponentProps<'div'> {
/**
* On close
* @param event
*/
onClose?: (event: MouseEvent<HTMLButtonElement>) => void;
/**
* Is visible
*/
isVisible?: boolean;
/**
* Sweep Mode™
* (makes it appear from the sides instead of from everywhere)
*/
sweep?: boolean;
/**
* Target ID for the Portal component
*/
target?: ComponentProps<typeof Portal>['target'];
}
export declare const Backdrop: FunctionComponent<PropsWithChildren<BackdropProps>>;