New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@chameleon-ds/checkbox

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chameleon-ds/checkbox

Chameleon checkbox

2.0.1
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
6
Weekly downloads
 
Created
Source

Chameleon Checkbox

import { html } from "@open-wc/demoing-storybook";
import { withKnobs, text, boolean } from "@open-wc/demoing-storybook";
import "./chameleon-checkbox.js";

export default {
  title: "Components|Form Elements/Checkbox",
  component: "chameleon-checkbox",
  decorators: [withKnobs],
  options: { selectedPanel: "storybookjs/docs/panel" },
};

Properties

Property NameType(s)Default ValueDescription
labelString""The checkbox's label
nameString"cha-checkbox"The checkbox's form name
checkedBooleanfalseA Boolean which, if true, indicates that the checkbox is selected
valueString""The checkbox's current value
readonlyBooleanfalseA Boolean attribute which, if true, indicates that the checkbox cannot be edited
disabledBooleanfalseThe checkbox's enabled/disabled status
invalidBooleanfalseInvalid boolean to allow validity access from higher level form errors
requiredbooleanfalseA Boolean to indicate the input is required

Examples

Default

export const Default = () => {
  const label = text("Label", "");
  const checked = boolean("Checked", true);
  const disabled = boolean("Disabled", false);
  const invalid = boolean("Invalid", false);

  return html`
    <chameleon-checkbox
      label="${label}"
      ?checked="${checked}"
      ?disabled="${disabled}"
      ?invalid="${invalid}"
    ></chameleon-checkbox>
  `;
};

FAQs

Package last updated on 22 Jun 2020

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