viewport-playground Svelte Themes

Viewport Playground

Viewport playground component for svelte

Viewport playground

Usage

import {ViewportPlayground, enterPlayground} from 'viewport-playground'

<ViewportPlayground>
    // a button to enter the dev mode, can be nested anywhere in the app
    <button onclick={enterPlayground}>enter playground</button>
    // ...The rest of your app
</ViewportPlayground>

Props

wrapper: iframe => default | 'div'.

Top categories

Loading Svelte Themes