interface

BrowserFrame

A browser chrome that wraps arbitrary content — children, an image src, or a neutral placeholder. A container component (the documented exception to self-contained). Scales-and-fades in on the house spring.

$ npx ondajs add browser-frame

BrowserFrame

A browser chrome (three dots + an address pill) that wraps arbitrary content. Pass children (JSX), an image src, or neither (a neutral placeholder showing the URL). It is a container — the documented exception to the component contract's "self-contained" rule, since wrapping content is its entire purpose. It scales-and-fades in on the house spring.

Props

PropTypeDefaultNotes
urlstring"onda.video"Address-pill text.
srcstring?Image to show when no children.
childrenReactNode?Content to wrap (JSX only).
delaynumber0Frames before entrance.
animatebooleantrueScale-and-fade in.
widthnumber1280Frame width.
heightnumber720Content height (excl. chrome).
placementregion or {x,y,anchor}Canvas placement.

Usage

TSX
import { BrowserFrame } from './components/onda/browser-frame/BrowserFrame';

export const SiteScene = () => (
  <BrowserFrame url="onda.video" src="/screenshot.png" placement="center" />
);