63ad7cdebc | ||
---|---|---|
.. | ||
demos/js-demo | ||
scripts | ||
src | ||
README.md | ||
package.json | ||
tsconfig.demo.json | ||
tsconfig.json |
README.md
Switch
Switch button
Import
import '@omiu/switch'
Or use script tag to ref it.
<script src="https://unpkg.com/@omiu/switch"></script>
Usage
<o-switch></o-switch>
API
Props
{
checked: boolean
}
Events
- change