@belleui/belle-switch

npm install @belleui/belle-switch

Usage no npm install needed!

<script type="module">
  import belleuiBelleSwitch from 'https://cdn.skypack.dev/@belleui/belle-switch';
</script>

README

@belleui/belle-switch

Downloads per month NPM Version TypeScript Published on webcomponents.org

Preview

screent shot

Install

npm install @belleui/belle-switch

Useage

<belle-switch>Switch</belle-switch>
<belle-switch disabled>Disabled</belle-switch>
<belle-switch checked>Checked</belle-switch>

Properties

Property Attribute Type Default Description
checked checked boolean false 默认是否选中
disabled disabled boolean false 是否禁用

Methods

Method Type
handleChange (): void

Events

Event Type
change CustomEvent<{ checked: boolean; }>