bridgestone_icons v1.0.0
Bridgestone Icons
Bridgestone Icons is a completely icon set with 330+ icons crafted for web, iOS, Android, and desktop apps.
Using the Web Component
The Bridgestone Icons 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.
Basic usage
To use a built-in icon from the Bridgestone package, populate the name
attribute on the ion-icon component:
<bs-icon name="heart"></ion-icon>
To use a custom SVG, provide its url in the src
attribute to request the external SVG file. The src
attribute works the same as <img src="...">
in that the url must be accessible from the webpage that's making a request for the image. Additionally, the external file can only be a valid svg and does not allow scripts or events within the svg element.
<bs-icon src="/path/to/external/file.svg"></ion-icon>
6 years ago