Ionic provides different packages that can be used to quickly get started using Ionic Framework or Ionicons in a test environment, Angular, any other framework, or none at all.
It's recommended to use jsdelivr to access the Framework from a CDN. To get the latest version, add the following inside the
<head> element in an HTML file, or where external assets are included in the online code editor:
With this it's possible to use all of the Ionic Framework core components without having to install a framework. The CSS bundle will include all of the Ionic Global Stylesheets.
This does not install Angular or any other frameworks. This allows use of the Ionic Framework core components without a framework.
When using Ionic Framework in an Angular project, install the latest
@ionic/angular package from npm. This comes with all of the Ionic Framework components and Angular specific services and features.
For adding Ionic to an already existing Angular project, use the Angular CLI's
ng add feature.
This will add the necessary imports to the
@ionic/angular package as well as add the styles needed.
To add Ionic Framework to an already existing React project, install the
To include the necessary CSS in a React project, add the following to the root App component.
To add Ionic Framework to an existing Vue project, install the
After that, you will need to install the
IonicVue plugin in your Vue app.
Be sure to mount your app once
router.isReady() has resolved.
When setting up routing in your Vue app, you will need to import your dependencies from
@ionic/vue-router instead of
To include the necessary CSS in a Vue project, add the following to your
From here, you can learn about how to develop with Ionic Framework in our Ionic Vue Quickstart Guide.
Ionicons is packaged by default with the Ionic Framework, so no installation is necessary if you're using Ionic. To use Ionicons without Ionic Framework, place the following
<script> near the end of your page, right before the closing
See Ionicons usage for more information on using Ionicons.