0.6.4 • Published 4 years ago
@idli/idli-button v0.6.4
Using this component
Script tag
- Put a script tag similar to this
<script src='https://unpkg.com/@idli/idli-button@0.6.4/dist/idli-button.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-button --save
- Put a script tag similar to this
<script src='node_modules/@idli/idli-button/dist/idli-button.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-button --save
- Add an import to the npm packages
import @idli/idli-button;
- 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 button</title>
<script src='https://unpkg.com/@idli/idli-button@0.6.4/dist/idli-button.js'></script>
</head>
<body>
<idli-button>Default</idli-button>
<idli-button variant="primary">Primary</idli-button>
<idli-button variant="danger">Danger</idli-button>
<idli-button variant="dashed">Dashed</idli-button>
<idli-button variant="link">Link</idli-button>
</body>
</html>