.. | ||
svg | ||
index.js | ||
README.md | ||
styled-switch-button.js | ||
switch-button.stories.js | ||
switch-button.test.js |
SwitchButton
Actions with a button.
Usage
import { SwitchButton } from "app-components";
<SwitchButton
disabled={false}
checked={false}
onChange={() => alert("SwitchButton clicked")}
/>
Properties
Props | Type | Required | Values | Default | Description |
---|---|---|---|---|---|
disabled |
bool |
- | - | false |
Disables the button default functionality |
onChange |
func |
- | - | - | The event triggered when the button is clicked |
checked |
bool |
- | - | false |
Makes SwitchButton checked. |