@tuzzle/chooser
v0.1.3
Published
Framework-agnostic Tuzzle media chooser / library widget
Downloads
426
Readme
@tuzzle/chooser
Framework-agnostic media chooser / library widget for Tuzzle. Pure DOM + CSS-in-JS, fully themeable via --tz-* CSS variables. Used under the hood by the React, Vue, Next, and Nuxt bindings.
Install
npm install @tuzzle/chooserUsage
import { createChooser } from '@tuzzle/chooser'
const chooser = createChooser({
cdnUrl: 'https://cdn.tzzl.io',
space: 'my-space',
baseUrl: 'https://api.tzzl.io',
accessToken: '...', // or apiKey
onSelect: assets => console.log(assets),
})
chooser.open()See the repo README for the full SDK overview.
License
MIT
