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
import { MockupBrowser } from '@sigx/daisyui';
// or
import { Mockup } from '@sigx/daisyui';
Basic Usage
Loading preview...
Default URL
Without url the toolbar shows https://example.com.
Loading preview...
Framing a Layout
Loading preview...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
url | string | 'https://example.com' | Text shown in the URL bar |
class | string | - | Additional CSS classes on the frame |
Slots
| Slot | Description |
|---|---|
default | Page content rendered under the toolbar |
