feat(overlays): add managed overlay package

This commit is contained in:
Maofeng
2026-09-28 23:13:44 +08:00
parent bca874fd30
commit 0ec968c344
34 changed files with 2340 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import type { OverlayScope } from "./scope"
import { AlertHost } from "./alert"
import { ConfirmHost } from "./confirm"
import { DrawerHost } from "./drawer"
import { ModalHost } from "./modal"
import { PromptHost } from "./prompt"
import { SheetHost } from "./sheet"
import { ToastHost } from "./toast"
export interface OverlayHostProps {
scope?: OverlayScope
}
/** Convenience host for applications that use every overlay feature. */
export function OverlayHost({ scope }: OverlayHostProps) {
return (
<>
<AlertHost scope={scope} />
<ConfirmHost scope={scope} />
<PromptHost scope={scope} />
<ModalHost scope={scope} />
<SheetHost scope={scope} />
<DrawerHost scope={scope} />
<ToastHost scope={scope} />
</>
)
}