0.2.4 • Published 4 years ago
@idli/idli-input v0.2.4
Using this component
Script tag
- Put a script tag similar to this
<script src='https://unpkg.com/@idli/idli-input@0.2.2/dist/idli-input.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-input --save
- Put a script tag similar to this
<script src='node_modules/@idli/idli-input/dist/idli-input.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-input --save
- Add an import to the npm packages
import @idli/idli-input;
- 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>JS Bin</title>
<script src='https://unpkg.com/@idli/idli-input@0.2.2/dist/idli-input.js'></script>
</head>
<body>
<idli-input label="Name" placeholder="John Snow"></idli-input>
<idli-input size="lg" inline label="Size Large" value="Rahul"></idli-input>
<idli-input size="md" label="Disabled" value="Visakhapatnam" disabled></idli-input>
</body>
</html>