1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-23 03:54:21 +00:00
bluelib/src/components/ButtonToggle
2021-03-23 16:58:35 +01:00
..
index.js Implement buttons 2021-03-23 16:58:35 +01:00
Readme.md Implement buttons 2021-03-23 16:58:35 +01:00

A clickable button that should trigger an action on click.

import Bluelib from "../Bluelib";
import Color from "../Color";

<Bluelib>
    <p>
        <ButtonToggle value={true}>
            On
        </ButtonToggle>
        &nbsp;
        <ButtonToggle value={false}>
            Off
        </ButtonToggle>
    </p>
    <p>
        <Color builtin="magenta">
            <ButtonToggle value={true}>
                On
            </ButtonToggle>
            &nbsp;
            <ButtonToggle value={false}>
                Off
            </ButtonToggle>
        </Color>
    </p>
    <p>
        <ButtonToggle disabled={true} value={true}>
            On
        </ButtonToggle>
        &nbsp;
        <ButtonToggle disabled={true} value={false}>
            Off
        </ButtonToggle>
    </p>
</Bluelib>