vue-chocolat
VueJs component to work with Chocolat
?
Install
In package.json
The component can be installed by executing
In Component
Add it globally
or locally
Props
No properties are required altough you'll have a better control over the component when using it.
- items
- default:
null
- required:
false
- type:
Array
- Reference link
- default:
- options
- default:
undefined
- required:
false
- type:
Object
- Reference link
- default:
- selector
- default:
:scope > a
- required:
false
- type:
String
- default:
items
create a gallery, selector
creates a collection of clickable elements. You can't use both of them at once.
API
When creating a <vue-chocolat>
component you'll have access to its api
by adding a ref
attribute to it.
Todo list
- [ ] Improve API interface
Examples
Examples can be found here:
Live examples can be found at Chocolat's page.