Browser#

MockupBrowser wraps content in a browser-window frame: a toolbar with a URL field above whatever you place inside. Use it to show a site or screenshot in context. It is also available as Mockup.Browser.

Import#

TSX
import { MockupBrowser } from '@sigx/daisyui';
// or
import { Mockup } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

Default URL#

Without url the toolbar shows https://example.com.

TSX
Loading preview...

Framing a Layout#

TSX
Loading preview...

Props#

PropTypeDefaultDescription
urlstring'https://example.com'Text shown in the URL bar
classstring-Additional CSS classes on the frame

Slots#

SlotDescription
defaultPage content rendered under the toolbar