0.0.1-alpha.2 • Published 3 years ago

@belleui/belle-switch v0.0.1-alpha.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@belleui/belle-switch

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

PropertyAttributeTypeDefaultDescription
checkedcheckedbooleanfalse默认是否选中
disableddisabledbooleanfalse是否禁用

Methods

MethodType
handleChange(): void

Events

EventType
changeCustomEvent<{ checked: boolean; }>