UNPKG

9.95 kBMarkdownView Raw
1![Quasar Framework logo](https://cdn.quasar.dev/logo/svg/quasar-logo-full-inline.svg)
2
3## Quasar Framework Extras Package
4
5> Build high-performance VueJS user interfaces in record time: responsive Single Page Apps, SSR Apps, PWAs, Browser extensions, Hybrid Mobile Apps and Electron Apps. If you want, all using the same codebase!
6
7<img src="https://img.shields.io/npm/v/%40quasar/extras.svg?label=@quasar/extras">
8
9[![Join the chat at https://chat.quasar.dev](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://chat.quasar.dev)
10<a href="https://forum.quasar.dev" target="_blank"><img src="https://img.shields.io/badge/community-forum-brightgreen.svg"></a>
11[![https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg](https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg)](https://good-labs.github.io/greater-good-affirmation)
12
13## Why?
14Why this package? Because it strips down unnecessary package files (so faster download times), all in one place, tested and ready to use with Quasar. One other reason is that the material icons npm package sometimes fails to be downloaded by NPM.
15
16## Contents
17
18Please make sure you have latest `@quasar/extras` npm package version installed into your project folder in order for you to benefit from everything below.
19
20### Webfonts
21
22| Vendor | Version | quasar.conf.js extras name | Description | Notes | License |
23| --- | --- | --- | --- | --- | --- |
24| Roboto Font | CDN v20 | `roboto-font` | Recommended font along Material theme | | [License](roboto-font/LICENSE) |
25| Roboto Font Latin Extended | CDN v20 | `roboto-font-latin-ext` | Recommended font along Material theme | | [License](roboto-font-latin-ext/LICENSE) |
26| [Material Icons](https://material.io/tools/icons/?style=baseline) (Google) | CDN v70 | `material-icons` | Material icons font | Requires: Quasar 1.0.5+, @quasar/extras 1.2.0+ | [License](material-icons/LICENSE) |
27| [Material Icons Outlined](https://material.io/tools/icons/?style=outline) | CDN v38 | `material-icons-outlined` | Material icons outlined font | Requires: Quasar 1.0.5+, @quasar/extras 1.2.0+ | [License](material-icons-outlined/LICENSE) |
28| [Material Icons Round](https://material.io/tools/icons/?style=round) | CDN v37 | `material-icons-round` | Material icons round font | Requires: Quasar 1.0.5+, @quasar/extras 1.2.0+ | [License](material-icons-round/LICENSE) |
29| [Material Icons Sharp](https://material.io/tools/icons/?style=sharp) | CDN v38 | `material-icons-sharp` | Material icons sharp font | Requires: Quasar 1.0.5+, @quasar/extras 1.2.0+ | [License](material-icons-sharp/LICENSE) |
30| [MDI v5](https://materialdesignicons.com/) (Material Design Icons) | 5.9.55 | `mdi-v5` | Extended Material Design icons font | The Quasar Icon Set is available in Quasar 1.9.9+ | [License](mdi-v5/LICENSE) |
31| MDI v4 (Material Design Icons) | 4.9.95 | `mdi-v4` | Extended Material Design icons font | | [License](mdi-v4/license.md) |
32| MDI v3 (Material Design Icons) | 3.6.95 | `mdi-v3` | Extended Material Design icons font | | [License](mdi-v3/LICENSE) |
33| [Font Awesome](https://fontawesome.com/icons?d=gallery) | 5.15.2 | `fontawesome-v5` | Fontawesome icons font | | [License](fontawesome-v5/LICENSE.txt) |
34| [Ionicons](https://ionicons.com/v4) | 4.6.3 | `ionicons-v4` | Ionicons font | | [License](ionicons-v4/LICENSE) |
35| [Eva Icons](https://akveo.github.io/eva-icons) | 1.1.3 | `eva-icons` | Eva Icons font | | [License](eva-icons/LICENSE) |
36| [Themify Icons](https://themify.me/themify-icons) | 1.0.1 | `themify` | Themify Icons font | | [License](themify/LICENSE) |
37| [Line Awesome](https://icons8.com/line-awesome) | 1.3.0 | `line-awesome` | Line Awesome font | Requires: Quasar 1.8+, @quasar/extras 1.5+ | [License](line-awesome/LICENSE.md) |
38| [Animate.css](https://animate.style/) | 4.1.1 | Use `animations` prop | Bundle of animations you can use in your website/app | | [License](animate/LICENSE) |
39
40> Install one of MDI v5, MDI v4 or MDI v3, but never together at the same time.
41
42> Note that ionicons v5+ no longer comes with a webfont.
43
44### SVG
45
46> Quasar v1.7+ required for svg Quasar Icon Sets.
47
48| Vendor | Version | Quasar IconSet name | Import Icons from | Notes | License |
49| --- | --- | --- | --- | --- | --- |
50| [Material Icons](https://material.io/tools/icons/?style=baseline) (Google) | CDN v55 | `svg-material-icons` | `@quasar/extras/material-icons` | | [License](material-icons/LICENSE) |
51| [Material Icons Outlined](https://material.io/tools/icons/?style=outlined) (Google) | CDN v27 | `svg-material-icons-outlined` | `@quasar/extras/material-icons-outlined` | Requires: @quasar/extras 1.9+; The Quasar Icon Set requires Quasar v1.12.13+ | [License](material-icons-outlined/LICENSE) |
52| [Material Icons Round](https://material.io/tools/icons/?style=round) (Google) | CDN v26 | `svg-material-icons-round` | `@quasar/extras/material-icons-round` | Requires: @quasar/extras 1.9+; The Quasar Icon Set requires Quasar v1.12.13+ | [License](material-icons-round/LICENSE) |
53| [Material Icons Sharp](https://material.io/tools/icons/?style=sharp) (Google) | CDN v27 | `svg-material-icons-sharp` | `@quasar/extras/material-icons-sharp` | Requires: @quasar/extras 1.9+; The Quasar Icon Set requires Quasar v1.12.13+ | [License](material-icons-sharp/LICENSE) |
54| [MDI v5](https://materialdesignicons.com/) (Material Design Icons) | 5.9.55 | `svg-mdi-v5` | `@quasar/extras/mdi-v5` | The Quasar Icon Set is requires Quasar 1.9.9+ | [License](mdi-v5/LICENSE) |
55| MDI v4 (Material Design Icons) | 4.9.95 | `svg-mdi-v4` | `@quasar/extras/mdi-v4` | | [License](mdi-v4/license.md) |
56| [Font Awesome](https://fontawesome.com/icons?d=gallery) | 5.15.2 | `svg-fontawesome-v5` | `@quasar/extras/fontawesome-v5` | | [License](fontawesome-v5/LICENSE.txt) |
57| [Ionicons v5](https://ionicons.com/) | 5.4.0 | `svg-ionicons-v5` | `@quasar/extras/ionicons-v5` | Requires: @quasar/extras 1.7+; The Quasar Icon Set requires Quasar v1.11+ | [Icon License](ionicons-v5/LICENSE) |
58| [Ionicons v4](https://ionicons.com/v4/) | 4.6.3 | `svg-ionicons-v4` | `@quasar/extras/ionicons-v4` | No icon font (woof) files for Ionicons since v4.6.3 | [Icon License](ionicons-v4/LICENSE) |
59| [Eva Icons](https://akveo.github.io/eva-icons) | 1.1.3 | `svg-eva-icons` | `@quasar/extras/eva-icons` | | [License](eva-icons/LICENSE) |
60| [Themify Icons](https://themify.me/themify-icons) | 1.0.1 | `svg-themify` | `@quasar/extras/themify` | | [License](themify/LICENSE) |
61| [Line Awesome](https://icons8.com/line-awesome) | 1.3.0 | `svg-line-awesome` | `@quasar/extras/line-awesome` | Requires: Quasar 1.8+, @quasar/extras 1.5+ | [License](line-awesome/LICENSE.md) |
62
63Example:
64
65```html
66// some .vue file in devland
67<template>
68 <div>
69 <q-icon :name="matMenu" />
70 <q-btn :icon="mdiAbTesting" />
71 </div>
72</template>
73
74<script>
75import { matMenu } from '@quasar/extras/material-icons'
76import { mdiAbTesting } from '@quasar/extras/mdi-v5'
77
78export default {
79 // ...
80 created () {
81 this.matMenu = matMenu
82 this.mdiAbTesting = mdiAbTesting
83 }
84}
85```
86
87### QIcon cheatsheet
88
89```html
90<q-icon name="..." />
91```
92
93| Name | Prefix | Examples | Notes | License |
94| --- | --- | --- | --- | --- |
95| material-icons | *None* | thumb_up | Notice the underline character instead of dash or space | |
96| material-icons-outlined | o_ | o_thumb_up | Notice the underline character instead of dash or space | |
97| material-icons-round | r_ | r_thumb_up | Notice the underline character instead of dash or space | |
98| material-icons-sharp | s_ | s_thumb_up | Notice the underline character instead of dash or space | |
99| ionicons-v4 | ion-, ion-md-, ion-ios-, ion-logo- | ion-heart, ion-logo-npm, ion-md-airplane | Use QIcon instead of `<ion-icon>` component; Logo icons require 'ion-logo-' prefix | |
100| fontawesome-v5 | fa[s,r,l,b,d] fa- | "fas fa-ambulance" | QIcon "name" property is same as "class" attribute value in Fontawesome docs examples (where they show `<i>` tags) | |
101| mdi-v5 | mdi- | mdi-alert-circle-outline | Notice the use of dash characters | |
102| eva-icons | eva- | eva-shield-outline, eva-activity-outline | Notice the use of dash characters | |
103| themify | ti- | ti-hand-point-up | Notice the use of dash characters | |
104| line-awesome | la[s,r,l,b,d] la- | "las la-atom" | QIcon "name" property is same as "class" attribute value in Line Awesome docs examples (where they show `<i>` tags) | |
105
106### SVG name format
107Svg icons will be defined as String with the following syntax:
108
109```
110Syntax: "<path>|<viewBox>" or "<path>" (with implicit viewBox of '0 0 24 24')
111Examples:
112 M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z|0 0 24 24
113 M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z
114```
115
116## Supporting Quasar
117Quasar Framework is an MIT-licensed open source project. Its ongoing development is made possible thanks to the support by these awesome [backers](https://github.com/quasarframework/quasar/blob/dev/backers.md).
118
119**Please read our manifest on [Why donations are important](https://quasar.dev/why-donate)**. If you'd like to become a donator, check out [Quasar Framework's Donator campaign](https://donate.quasar.dev).
120
121## Documentation
122
123Head on to the Quasar Framework official website: [https://quasar.dev](https://quasar.dev)
124
125## Stay in Touch
126
127For latest releases and announcements, follow on Twitter: [@quasarframework](https://twitter.quasar.dev)
128
129## Chat Support
130
131Ask questions at the official community Discord server: [https://chat.quasar.dev](https://chat.quasar.dev)
132
133## Community Forum
134
135Head on to the official community forum: [https://forum.quasar.dev](https://forum.quasar.dev)
136
137## Semver
138Using [semver 2.0](http://semver.org/) notation for 'quasar-extras' package.
139
140## License
141
142All assets included in this repository are exclusive property of their respective owners and licensed under their own respective licenses. Quasar does not take any credit in packages included here.