A Vue.js plugin that wraps around
the Graffiti API
to provide reactive versions
of various Graffiti API methods.
These reactive methods are available as both
renderless components,
which make it possible to create a whole Graffiti app in an HTML template,
and composables,
which can be used in the programmatic composition API.
The plugin also exposes a global Graffiti instance
and keeps track of the global GraffitiSession
state as a reactive variable.
They are available in templates as global variables or in setup functions as
getter functions.
Finally, the plugin exposes an additional component, GraffitiObjectInfo
that can be use to generically display a Graffiti object for debugging purposes.
GraffitiDiscover and GraffitiGet show this output as
fallback content
if no template is provided
A Vue.js plugin that wraps around the Graffiti API to provide reactive versions of various Graffiti API methods.
These reactive methods are available as both renderless components, which make it possible to create a whole Graffiti app in an HTML template, and composables, which can be used in the programmatic composition API.
The plugin also exposes a global Graffiti instance and keeps track of the global GraffitiSession state as a reactive variable. They are available in templates as global variables or in setup functions as getter functions.
Finally, the plugin exposes an additional component, GraffitiObjectInfo that can be use to generically display a Graffiti object for debugging purposes. GraffitiDiscover and GraffitiGet show this output as fallback content if no template is provided
See the README for installation instructions.
You can try out live examples, but basic usage looks like this: