UNPKG

9.24 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 responsive Single Page Apps, **SSR Apps**, PWAs, Hybrid Mobile Apps and Electron Apps, all using the same codebase!, powered with Vue.
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 v50 | `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 v18 | `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 v18 | `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 v19 | `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.0.45 | `mdi-v5` | Extended Material Design icons font | The Quasar Icon Set is available in Quasar 1.9.9+ | [License](mdi-v5/license.md) |
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.13.0 | `fontawesome-v5` | Fontawesome icons font | | [License](fontawesome-v5/LICENSE.txt) |
34| [Ionicons](http://ionicons.com/) | 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://daneden.github.io/animate.css/) | 3.7.2 | Use `animations` prop | Bundle of animations you can use in your website/app | | [License](animate/LICENSE) |
39
40> Either install MDI v4 or MDI v3, but never both at the same time.
41
42### SVG
43
44> Quasar v1.7+ required for svg Quasar Icon Sets.
45
46| Vendor | Version | Quasar IconSet name | Import Icons from | Notes | License |
47| --- | --- | --- | --- | --- | --- |
48| [Material Icons](https://material.io/tools/icons/?style=baseline) (Google) | 3.0.1 | `svg-material-icons` | `@quasar/extras/material-icons` | **The svgs are many years old!** Recommending the use of MDI svgs instead. | [License](material-icons/LICENSE) |
49| [Material Icons Outlined](https://material.io/tools/icons/?style=outlined) (Google) | | | | *Not yet available* | [License](material-icons-outlined/LICENSE) |
50| [Material Icons Round](https://material.io/tools/icons/?style=round) (Google) | | | | *Not yet available* | [License](material-icons-round/LICENSE) |
51| [Material Icons Sharp](https://material.io/tools/icons/?style=sharp) (Google) | | | | *Not yet available* | [License](material-icons-sharp/LICENSE) |
52| [MDI v5](https://materialdesignicons.com/) (Material Design Icons) | 5.0.45 | `svg-mdi-v5` | `@quasar/extras/mdi-v5` | The Quasar Icon Set is available in Quasar 1.9.9+ | [License](mdi-v5/license.md) |
53| MDI v4 (Material Design Icons) | 4.9.95 | `svg-mdi-v4` | `@quasar/extras/mdi-v4` | | [License](mdi-v4/license.md) |
54| [Font Awesome](https://fontawesome.com/icons?d=gallery) | 5.13.0 | `svg-fontawesome-v5` | `@quasar/extras/fontawesome-v5` | | [License](fontawesome-v5/LICENSE.txt) |
55| [Ionicons](http://ionicons.com/) | 4.6.3 | `svg-ionicons-v4` | `@quasar/extras/ionicons-v4` | | [Icon License](ionicons-v4/LICENSE) |
56| [Eva Icons](https://akveo.github.io/eva-icons) | 1.1.3 | `svg-eva-icons` | `@quasar/extras/eva-icons` | | [License](eva-icons/LICENSE) |
57| [Themify Icons](https://themify.me/themify-icons) | 1.0.1 | `svg-themify` | `@quasar/extras/themify` | | [License](themify/LICENSE) |
58| [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) |
59
60Example:
61
62```vue
63// some .vue file in devland
64<template>
65 <div>
66 <q-icon :name="matMenu" />
67 <q-btn :icon="mdiAbTesting" />
68 </div>
69</template>
70
71<script>
72import { matMenu } from '@quasar/extras/material-icons'
73import { mdiAbTesting } from '@quasar/extras/mdi-v4'
74
75export default {
76 // ...
77 created () {
78 this.matMenu = matMenu
79 this.mdiAbTesting = mdiAbTesting
80 }
81}
82```
83
84### QIcon cheatsheet
85
86```html
87<q-icon name="..." />
88```
89
90| Name | Prefix | Examples | Notes | Licence |
91| --- | --- | --- | --- | --- |
92| material-icons | *None* | thumb_up | Notice the underline character instead of dash or space | |
93| material-icons-outlined | o_ | o_thumb_up | Notice the underline character instead of dash or space | |
94| material-icons-round | r_ | r_thumb_up | Notice the underline character instead of dash or space | |
95| material-icons-sharp | s_ | s_thumb_up | Notice the underline character instead of dash or space | |
96| 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 | |
97| 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) | |
98| mdi-v5 | mdi- | mdi-alert-circle-outline | Notice the use of dash characters | |
99| eva-icons | eva- | eva-shield-outline, eva-activity-outline | Notice the use of dash characters | |
100| themify | ti- | ti-hand-point-up | Notice the use of dash characters | |
101| 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) | |
102
103### SVG name format
104Svg icons will be defined as String with the following syntax:
105
106```
107Syntax: "<path>|<viewBox>" or "<path>" (with implicit viewBox of '0 0 24 24')
108Examples:
109 M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z|0 0 24 24
110 M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z
111```
112
113## Supporting Quasar
114Quasar 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).
115
116**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).
117
118## Documentation
119
120Head on to the Quasar Framework official website: [https://quasar.dev](https://quasar.dev)
121
122## Stay in Touch
123
124For latest releases and announcements, follow on Twitter: [@quasarframework](https://twitter.quasar.dev)
125
126## Chat Support
127
128Ask questions at the official community Discord server: [https://chat.quasar.dev](https://chat.quasar.dev)
129
130## Community Forum
131
132Head on to the official community forum: [https://forum.quasar.dev](https://forum.quasar.dev)
133
134## Semver
135Using [semver 2.0](http://semver.org/) notation for 'quasar-extras' package.
136
137## License
138
139All 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.