@furystack/shades-common-components
Version:
Common UI components for FuryStack Shades
23 lines • 878 B
TypeScript
export type ModalProps = {
backdropStyle?: Partial<CSSStyleDeclaration>;
isVisible: boolean;
onClose?: () => void;
showAnimation?: (el: Element | null) => Promise<unknown>;
hideAnimation?: (el: Element | null) => Promise<unknown>;
/**
* When true, traps spatial navigation within the modal's bounds.
* If SpatialNavigationService is not yet instantiated, it will be created with defaults.
*/
trapFocus?: boolean;
/**
* Section name for spatial navigation scoping.
* @default 'modal'
*/
navSection?: string;
};
export declare const Modal: (props: ModalProps & Omit<Partial<HTMLElement>, "style"> & {
style?: Partial<CSSStyleDeclaration>;
} & {
ref?: import("@furystack/shades").RefObject<Element>;
}, children?: import("@furystack/shades").ChildrenList) => JSX.Element;
//# sourceMappingURL=modal.d.ts.map