0.2.10 • Published 3 years ago

@oui-ui/checkbox v0.2.10

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Checkbox

Quick start

Each web component lives in its own package. Here's how you'd get started with a checkbox.

  1. Begin by installing via your favourite package manager

npm install @oui-ui/checkbox

  1. Use in your HTML, JSX, or whatever:
<!DOCTYPE html>
<html>
    <head>
        <title>Quick Start</title>
        <meta charset="UTF-8" />
    </head>

    <body>
        <!-- Use web components in your HTML like regular built-in elements. -->
        <oui-checkbox>
            <div slot="control">
                <div slot="indicator"></div>
            </div>
            <p slot="label">Hey there</p>
        </oui-checkbox>

        <!-- oui-ui web components use standard JavaScript modules. -->
        <script type="module">
            import '@oui-ui/checkbox'
        </script>
    </body>
</html>

API

NameTypeDefaultDescription
checkedbooleanfalseWhether or not the checkbox's value is checked, if set to true the checkbox displays the contents of the checked-indicator slot
defaultCheckedbooleanfalseWhether the checkbox is checked by default when added to the DOM. Does nothing if checked is explicitly set
disabledbooleanfalseWhen set to true the checkbox cannot be interacted
indeterminatebooleanfalseWhen set to true the checkbox displays the contents of the intermediate-indicator slot
0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago