Web Component for a customized tag text, based on LitElement.
More details: Go to DEMO page
npm i dile-tag
<script type="module">
import 'dile-tag/dile-tag.js';
</script>
<dile-tag label="My fisrt tag" round shadow></dile-tag>
- label: The label tag
- icon: The icon tag
- round: Customize round tag
- shadow: Customize shadow tag
- upper: Customize uppercase text tag
- allowClose: Allow add a button close in tag
Custom property | Description | Default |
---|---|---|
--dile-tag-text-color | Main Text Color | #000 |
--dile-tag-background | Main Background Color | #ddd |
--dile-tag-padding | Main Padding Block | 0.5rem |
Fires whenever click in button close
dileTag.addEventListener('closed', () => console.log('closed'));
npm i
npm start
npm run storybook