Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Polydile/dile-close-icon-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moved

This package has moved and is now available at @dile/ui. Please update your dependencies. This repository is no longer maintained. You can read the documentation at Dile Components.

dile-close-icon-template

LitElement Template to implement a close icon

import { closeIcon } from 'dile-close-icon-template';

Yo may use this icon in a LitElement template:

render() {
  return html`
    // Your component template
    ${ closeIcon }
  `;
}

To easy style the icon you may use the CSS declaration provided in this package.

import { closeIcon, closeIconCss } from 'dile-close-icon-template';

You may use this style declaration like this:

static get styles() { return [closeIconCss, css:host { --dile-close-icon-template-color: #fce; }]; }

As you may note, there is a custom CSS property named --dile-close-icon-template-color. Use it to set the color of the icon.

About

Mixin to create a close icon in a LitElement template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published