@workday/canvas-kit-css-checkbox

9.1.26 • Public • Published

Canvas Kit Checkbox

Checkbox styles

Mainenance Mode

> Workday Design Reference

Installation

yarn add @workday/canvas-kit-css

or

yarn add @workday/canvas-kit-css-checkbox

Add your node_modules directory to your SASS includePaths. You will then be able to import index.scss.

@import '~@workday/canvas-kit-css-checkbox/index.scss';

You must have PostCSS support. Add the postcss-inline-svg plugin to properly process and inline icons. Process your SASS through PostCSS once it has been compiled to CSS.

Usage

<div class="wdc-form-checkbox">
  <input type="checkbox" id="checkbox" />
  <label for="checkbox">Checkbox option</label>
</div>

Note: While a base checkbox component is provided in this package, it is not accessible when used as is. It should be used in tandem with canvas-kit-form-field to be made fully accessible.

Labels

Render a checkbox inside a canvas-kit-form-field to add a label.

/@workday/canvas-kit-css-checkbox/

    Package Sidebar

    Install

    npm i @workday/canvas-kit-css-checkbox

    Weekly Downloads

    20

    Version

    9.1.26

    License

    Apache-2.0

    Unpacked Size

    25.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • merve.batan
    • raisa.primerova
    • jaclynjessup
    • nicholasboll
    • alanbsmith
    • workday-canvas-kit
    • justin.pante
    • anicholls