You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dile-checkbox

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dile-checkbox

Webcomponent dile-checkbox following open-wc recommendations

1.0.4
Source
npmnpm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

<dile-checkbox>

Web Component to create a customized checkbox input interface, based on LitElement.

Installation

npm i dile-checkbox

Usage

<script type="module">
  import 'dile-checkbox/dile-checkbox.js';
</script>

<dile-checkbox>Label for the element</dile-checkbox>

Properties

  • checked: Boolean, defines the checkbox state.
  • disabled: Boolean, mark checkbox as disabled.

Custom events

  • eit-checkbox-changed: Every time the checkbox changes emits a eit-checkbox-changed event. The checkbox current state is received in the handler usign the event object "detail" property.

CSS Custom Properties

You can customize it using CSS Custom Properties.

<style>
.customized {
  --eit-checkbox-checked-color: #006;
  --eit-checkbox-unchecked-color: #f66;
  --eit-checkbox-fill-color: #fcc;
  --eit-checkbox-unchecked-fill-color: #666;
  --eit-checkbox-label-color: #c57;
  --eit-checkbox-font-weight: bold;
}
</style>

<dile-checkbox checked class="customized">Mark as urgent</dile-checkbox>

FAQs

Package last updated on 05 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.