Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dreamworld/dw-checkbox

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/dw-checkbox

A material checkbox element made with lit-html. It's an wrapper of [mwc-checkbox](https://github.com/material-components/material-components-web-components/tree/master/packages/checkbox) element. Supports all the features of `mwc-checkbox`.

  • 2.3.2-development.2
  • development
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-78.26%
Maintainers
4
Weekly downloads
 
Created
Source

dw-checkbox

A material checkbox element made with lit-html. It's an wrapper of mwc-checkbox element. Supports all the features of mwc-checkbox.

Installation

npm install --save @dreamworld/dw-checkbox

Usage

  import '@dreamworld/dw-checkbox';

Demo

Properties

It supports below properties:

  • disabled

  • label

  • alignEnd

  • checked

  • indeterminate

  • value

Events

Triggers checked-changed event on checked status change.

Features

  • It provides checkbox with it's label
  • On label click it changes checkbox's selection

Examples

Set alignEnd property to show label after checkbox
  <dw-checkbox label="This is checkbox" alignEnd></dw-checkbox>
Use disabled property to disable checkbox
  <dw-checkbox label="This is checkbox" disabled checked></dw-checkbox>
value property usage

value property used to get selected item's value. e.g. apple. In below example, dwForm.serialize() method's result is {fruit: ['apple', 'kiwi']}

  <dw-form>
    <dw-checkbox name="fruit" value="apple" label="Apple" checked></dw-checkbox>
    <dw-checkbox name="fruit" value="grapes" label="Grapes"></dw-checkbox>
    <dw-checkbox name="fruit" value="kiwi" label="Kiwi" checked></dw-checkbox>
  </dw-form>

Keywords

FAQs

Package last updated on 24 May 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc