The user introduces their dni numbers and their related letter is automatically calculated.
Go to DEMOS page!
npm i dile-dni-generator-input
<script type="module">
import 'dile-dni-generator-input/dile-dni-generator-input.js';
</script>
<dile-dni-generator-input></dile-dni-generator-input>
You can customize it using CSS Custom Properties.
Custom property | Description | Default |
---|---|---|
--dile-dni-generator-input-label-padding | Padding for the label | 0.5em |
--dile-dni-generator-input-label-font-family | Font family for the label | Helvetica, sans-serif |
--dile-dni-generator-input-font-family | Font family for the label | Helvetica, sans-serif |
Name | Description | Data |
---|---|---|
backspace-pressed | backspace key pressed | Object |
To run the suite of karma tests, run
npm run test
To run a local instance of Storybook for your component, run
npm run storybook
npm start
To run a local development server that serves the basic demo located in demo/index.html