omi/components/toggle-icon
ringosix 82fff22966 feat(toggleIcon): publish version:0.0.2 2021-08-23 20:28:32 +08:00
..
demos/js-demo feat(omiu): add toggle icon 2020-04-27 17:32:45 +08:00
scripts chore: remove of doc-gen result 2020-04-30 09:17:17 +08:00
src feat(toggleIcon): fix toggleIcon bgcolor to transparent 2021-08-23 20:25:19 +08:00
README.md docs: rebuild 2020-04-27 17:52:40 +08:00
package.json feat(toggleIcon): publish version:0.0.2 2021-08-23 20:28:32 +08:00
tsconfig.demo.json feat(omiu): add toggle icon 2020-04-27 17:32:45 +08:00
tsconfig.json feat(omiu): add toggle icon 2020-04-27 17:32:45 +08:00

README.md

ToggleIcon

Icon with two state switches

Import

import '@omiu/toggle-icon'

Or use script tag to ref it.

<script src="https://unpkg.com/@omiu/toggle-icon"></script>

Usage

<o-toggle-icon></o-toggle-icon>

API

Props

{
  isOn?: boolean
  icons: object
  imgs: object
  color: string
  disabled: boolean
}

默认属性

{
  isOn: false,
  icons: []
)

Events

  • change