Package Exports
- @workday/canvas-kit-css-radio
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@workday/canvas-kit-css-radio) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Canvas Kit Radio
Radio styles
Installation
yarn add @workday/canvas-kit-css
or
yarn add @workday/canvas-kit-css-radio
Add your node_modules
directory to your SASS includePaths
. You will then be able to import
index.scss
.
@import '~@workday/canvas-kit-css-radio/index.scss';
Usage
<div class="wdc-form-radio">
<input type="radio" id="radio" />
<label for="radio">E-mail</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 radio inside a canvas-kit-form-field to add a label.