vue-creativecommons
CreativeCommons.org Vue.js components library.
Generated using vue-cli-template-library.
Installation
npm install vue-creativecommons
vue-creativecommons can be used as a module in both CommonJS and ES modular environments.
When in non-modular environment, vue-creativecommons will register all the components to vue by itself.
ES6
//// You can register a component manually//; ... components: CreativeCommonsIcon CreativeCommonsLabel ...; //// or register the whole module with vue//; // Install this libraryVue;
CommonJS
//// You can register a component manually//var Vue = ;var vueCreativeCommons = ; var YourComponent = Vue; //// or register the whole module with vue//var Vue = ;var vueCreativeCommons = ; // Install this libraryVue;
Browser
<!-- Components are registered globally -->
Usage
Icon component
Example
<!-- normal icon --> <!-- compact icon -->
Props
- allowAdaptations(required) - Allow adaptations of your work to be shared?
yes
,no
orshare-alike
- allowCommercialUse(required) - Allow commercial uses of your work?
yes
orno
- iconSize(required) :
compact
ornormal
Label component
Example
This work is licensed under a Creative Commons Attribution 4.0 International License.
Props
- allowAdaptations(required) - Allow adaptations of your work to be shared?
yes
,no
orshare-alike
- allowCommercialUse(required) - Allow commercial uses of your work?
yes
orno
Changelog
See the GitHub release history.
Contributing
See CONTRIBUTING.md.