0.1.5 • Published 4 years ago
@idli/idli-icon v0.1.5
Using this component
Script tag
- Put a script tag similar to this
<script src='https://unpkg.com/@idli/idli-icon@0.1.0/dist/idli-icon.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Node Modules
- Run
npm install @idli/idli-icon --save
- Put a script tag similar to this
<script src='node_modules/@idli/idli-icon/dist/idli-icon.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
In a stencil-starter app
- Run
npm install @idli/idli-icon --save
- Add an import to the npm packages
import @idli/idli-icon;
- Then you can use the element anywhere in your template, JSX, html etc
Example:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Idli Icon</title>
<script src='https://unpkg.com/@idli/idli-icon@0.1.0/dist/idli-icon.js'></script>
</head>
<body>
<idli-icon type="alarm"></idli-icon>
<idli-icon type="archive" variant="primary"></idli-icon>
<idli-icon type="mic-fill" variant="danger"></idli-icon>
<idli-icon type="exclamation-triangle" variant="success"></idli-icon>
<idli-icon type="envelope" size=50></idli-icon>
</body>
</html>