-
Tiny Vue component for Intl.ListFormat
-
This is on GitHub so let me know if I've b0rked it somewhere, give me a star ⭐️ if you like it 🍻
-
Demo here -> 💯 Codesandbox Demo
Requirements
- Vue.js 2.x
✅ Install 👌
npm install v-intl-listformat --save// oryarn add v-intl-listformat
CDN: UNPKG | jsDelivr (available as window.VIntlListFormat
)
✅ Usage 🎓
Register the component globally:
Vue;
Or use locally
;
✅ Example 1 🍀
// → 'Frank and Christine'
Vue;
✅ 📖 Props
Name | Type | Required? | Default | Description |
---|---|---|---|---|
payload |
Array | Yes | [] |
Locale you want to initialise the formatting to be done. |
locale |
String | No | en |
Locale you want to initialise the formatting to be done. |
type |
String | No | null |
Type can be disjunction or unit . |
style |
String | No | null |
Style is passed with type, values can be short or narrow . |
NPM :octocat:
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
v-intl-listformat © Vinayak, Released under the MIT License.
Authored and maintained by Vinayak Kulkarni with help from contributors (list).
vinayak.pw · GitHub @vinayakkulkarni · Twitter @_vinayak_k