Skip to documentation
Design system / Sources & standards
Current repository source
viewportNoticeFrame.tsx
src/components/navigation/viewportNoticeFrame.tsx
This view contains the escaped source read during the deployment build. Code and policy text are unchanged. Markdown is shown as source, not rendered as a document. A new deployment refreshes the content.
"use client";
import type { ReactNode } from "react";
import { useViewportNoticeFrame } from "./useViewportNoticeFrame";
/** Navigation-owned template. The caller supplies in-flow notice content, not policy. */
export function ViewportNoticeFrame({ notice, children }: { notice: ReactNode; children: ReactNode }) {
const refs = useViewportNoticeFrame();
return (
<div ref={refs.frame} data-slot="viewport-notice-frame">
{children}
<div ref={refs.notice} data-slot="viewport-notice" className="fixed inset-x-0 bottom-0 z-[101]">{notice}</div>
</div>
);
}
All sources and standards