What is @quasar/extras?
@quasar/extras is a collection of additional resources for the Quasar Framework, including icon sets, font libraries, and other extras that can be used to enhance the visual and functional aspects of Quasar applications.
What are @quasar/extras's main functionalities?
Icon Sets
This feature allows you to import and use various icon sets such as Material Icons, FontAwesome, and more in your Quasar applications.
import 'quasar/icon-set/material-icons';
Font Libraries
This feature allows you to import and use different font libraries like Roboto, Material Icons, etc., to style your Quasar applications.
import 'quasar/fonts/roboto-font';
Animations
This feature allows you to import and use various CSS animations to enhance the user experience in your Quasar applications.
import 'quasar/animations/fadeIn.css';
Other packages similar to @quasar/extras
font-awesome
Font Awesome is a popular icon set and toolkit that provides a wide range of icons and social logos. It is similar to @quasar/extras in that it offers a collection of icons that can be easily integrated into web applications.
material-icons
Material Icons is a set of icons designed by Google and used in Material Design. It is similar to @quasar/extras in that it provides a comprehensive set of icons that can be used in web applications.
animate.css
Animate.css is a library of ready-to-use, cross-browser animations for use in web projects. It is similar to @quasar/extras in that it provides a collection of animations that can be easily integrated into web applications.
Build responsive Single Page Apps, SSR Apps, PWAs, Hybrid Mobile Apps and Electron Apps, all using the same codebase!, powered with Vue.
Why?
Why 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.
Contents
Please make sure you have latest @quasar/extras
npm package version installed into your project folder in order for you to benefit from everything below.
Webfonts:
Either install MDI v4 or MDI v3, but never both at the same time.
SVG
Quasar v1.7+ required for svg Quasar Icon Sets.
Example:
// some .vue file in devland
<template>
<div>
<q-icon :name="matMenu" />
<q-btn :icon="mdiAbTesting" />
</div>
</template>
<script>
import { matMenu } from '@quasar/extras/material-icons'
import { mdiAbTesting } from '@quasar/extras/mdi-v4'
export default {
// ...
created () {
this.matMenu = matMenu
this.mdiAbTesting = mdiAbTesting
}
}
QIcon cheatsheet
<q-icon name="..." />
Name | Prefix | Examples | Notes | Licence |
---|
material-icons | None | thumb_up | Notice the underline character instead of dash or space | |
material-icons-outlined | o_ | o_thumb_up | Notice the underline character instead of dash or space | |
material-icons-round | r_ | r_thumb_up | Notice the underline character instead of dash or space | |
material-icons-sharp | s_ | s_thumb_up | Notice the underline character instead of dash or space | |
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 | |
fontawesome-v5 | fa[s,r,l,b] fa- | "fas fa-ambulance" | QIcon "name" property is same as "class" attribute value in Fontawesome docs examples (where they show <i> tags) | |
mdi-v3 | mdi- | mdi-alert-circle-outline | Notice the use of dash characters | |
eva-icons | eva- | eva-shield-outline, eva-activity-outline | Notice the use of dash characters | |
themify | ti- | ti-hand-point-up | Notice the use of dash characters | |
SVG name format
Svg icons will be defined as String with the following syntax:
Syntax: "<path>|<viewBox>" or "<path>" (with implicit viewBox of '0 0 24 24')
Examples:
M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z|0 0 24 24
M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z
Supporting Quasar
Quasar Framework is an MIT-licensed open source project. Its ongoing development is made possible thanks to the support by these awesome backers.
Please read our manifest on Why donations are important. If you'd like to become a donator, check out Quasar Framework's Donator campaign.
Documentation
Head on to the Quasar Framework official website: https://quasar.dev
Stay in Touch
For latest releases and announcements, follow on Twitter: @quasarframework
Chat Support
Ask questions at the official community Discord server: https://chat.quasar.dev
Head on to the official community forum: https://forum.quasar.dev
Semver
Using semver 2.0 notation for 'quasar-extras' package.
License
All 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.