Frame
Server ComponentBrowser/window chrome that frames a screenshot or product mockup.
Import
tsx
import { Frame } from "@cronus-ui/ui";
bash
npx cronus-ui add frame
Examples
.cronus
The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.
default.cronus
app "audit-fixtures" {
port 5176
}
style {
preset aurora
theme dark
}
component FrameDefault layout:inline style:frame {
url:"cronus.dev"
label "Checkout"
}
page "/audit/frame/default" type:custom {
use FrameDefault
}
API Reference
Generated from the component's exported types.
FrameProps
Extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof frameVariants>
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "browser" | "window" | "browser" | Chrome style. `browser` shows an address bar; `window` is a plain title bar. |
url | string | — | URL shown in the address bar (browser variant only). |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
id | string | — | DOM id of the root element. |