1.2.0 • Published 4 years ago

dile-dni-generator-input v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

\

The user introduces their dni numbers and their related letter is automatically calculated.

Go to DEMOS page!

Installation

npm i dile-dni-generator-input

Usage

<script type="module">
  import 'dile-dni-generator-input/dile-dni-generator-input.js';
</script>

<dile-dni-generator-input></dile-dni-generator-input>

Properties

Styles

You can customize it using CSS Custom Properties.

Custom propertyDescriptionDefault
--dile-dni-generator-input-label-paddingPadding for the label0.5em
--dile-dni-generator-input-label-font-familyFont family for the labelHelvetica, sans-serif
--dile-dni-generator-input-font-familyFont family for the labelHelvetica, sans-serif

Events

NameDescriptionData
backspace-pressedbackspace key pressedObject

Testing with Karma

To run the suite of karma tests, run

npm run test

Demoing with Storybook

To run a local instance of Storybook for your component, run

npm run storybook

Local Demo with es-dev-server

npm start

To run a local development server that serves the basic demo located in demo/index.html