82fff22966 | ||
---|---|---|
.. | ||
demos/js-demo | ||
scripts | ||
src | ||
README.md | ||
package.json | ||
tsconfig.demo.json | ||
tsconfig.json |
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