@vuetify/play
v0play hash protocol — encode, decode, and sanitize playground payloads
492
740
| Install | |
|---|---|
npm install @vuetify/play |
|
| Latest Version: | 0.1.2 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 24, 2026 |
| Links: | GitHub · npm |
Maintainer: johnjleider
@vuetify/play
Hash protocol for v0play. Encode files and themes into a URL hash; decode and sanitize them on the other side.
import { encodePlaygroundHash, toPlaygroundThemes } from '@vuetify/play'
const hash = await encodePlaygroundHash({
files: { 'src/App.vue': '<template>Hello</template>' },
...toPlaygroundThemes('brand-light', {
'brand-light': { dark: false, colors: { primary: '#7453ec', background: '#ffffff' } },
'brand-dark': { dark: true, colors: { primary: '#c4b5fd', background: '#121212' } },
}),
})
window.open(`https://v0play.vuetifyjs.com/#${hash}`)
Theme ids are {name}-light / {name}-dark pairs. Color keys and values are filtered through v0's ThemeAdapter.SAFE_IDENT / UNSAFE_CSS plus __proto__ / constructor / prototype skips.
Related Packages
@vuetify/loader-shared
23,066,722
512
@vuetify/v0
Headless, unstyled, accessible Vue 3 primitives and composables — a meta UI fram...
711,847
739
Version History
| Version | Released | License |
|---|---|---|
| 0.1.2 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT |