GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing ionic.io — Ionicons: The premium icon pack for Ionic Framework UsageIonicons is a completely open-source icon set with 1,300 icons crafted for web, iOS, Android, and desktop apps. Ionicons was made for Ionic Framework, a cross-platform hybrid and Progressive Web App framework. Using the Web ComponentThe Ionicons Web Component is an easy and performant way to use Ionicons in your app. The component will dynamically load an SVG for each icon, so your app is only requesting the icons that you need. Also note that only visible icons are loaded, and icons which are "below the fold" and hidden from the user's view do not make fetch requests for the svg resource. InstallationIf you're using Ionic Framework, Ionicons is packaged by default, so no installation is necessary. Want to use Ionicons without Ionic Framework? Place the following
<script type="module" src="https://unpkg.com/ionicons@undefined/dist/ionicons/ionicons.esm.js"></script> <script nomodule src="https://unpkg.com/ionicons@undefined/dist/ionicons/ionicons.js"></script> Basic usageTo use a built-in icon from the Ionicons package, populate the <ion-icon name="heart"></ion-icon> Custom iconsTo use a custom SVG, provide its url in the <ion-icon src="/path/to/external/file.svg"></ion-icon> VariantsEach app icon in Ionicons has a <ion-icon name="heart"></ion-icon> <!--filled--> <ion-icon name="heart-outline"></ion-icon> <!--outline--> <ion-icon name="heart-sharp"></ion-icon> <!--sharp--> Platform specificityWhen using icons in Ionic Framework you can specify different icons per platform. Use the
<ion-icon ios="heart-outline" md="heart-sharp"></ion-icon> SizeTo specify the icon size, you can use the
<ion-icon size="small"></ion-icon> <ion-icon size="large"></ion-icon> Or you can set a specific size by applying the
ion-icon { font-size: 64px; } ColorSpecify the icon color by applying the ion-icon { color: blue; } Stroke widthWhen using an <ion-icon name="heart-outline"></ion-icon> ion-icon { --ionicon-stroke-width: 16px; } AccessibilityIcons that are purely decorative content should have <ion-icon name="heart" aria-hidden="true"></ion-icon> If the icon is interactive, it should have alternate text defined by adding an <ion-icon name="heart" aria-label="Favorite"></ion-icon> Alternatively, if the icon is inside of another element that it is describing, that element should have the
<ion-button aria-label="Favorite"> <ion-icon name="heart" aria-hidden="true"></ion-icon> </ion-button> Browser supportReport problems with this compatibility data on GitHub.
Migrating from v4See the 5.0 release notes for a list of icon deletions/renames. You can find an archived version of the v4 site here. | ||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |