@hypothesis/frontend-shared
Version:
Shared components, styles and utilities for Hypothesis projects
12 lines (11 loc) • 413 B
TypeScript
export type CloseableInfo = {
/** The close button title. Defaults to "Close" */
title?: string;
/**
* Provide a close handler to descendants. This can allow, e.g., button-like
* components to correctly close a parent dialog or panel.
*/
onClose: (() => void) | undefined;
};
declare const CloseableContext: import("preact").Context<CloseableInfo>;
export default CloseableContext;