viewport-playground
Version:
```ts import {ViewportPlayground, enterPlayground} from 'viewport-playground'
18 lines (12 loc) • 376 B
Markdown
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>
```
wrapper: `iframe` => default | 'div'.
```ts
import {ViewportPlayground, enterPlayground}