@anypoint-web-components/anypoint-radio-button
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

Deprecated

This component has been moved to anypoint-web-components/awc.


Accessible radio button and radio button group for Anypoint platform.

Radio buttons are used to select one of predefined options. Radio buttons should be used when the user must see all available options. Consider using a dropdown list if the options can be collapsed.

See Radio buttons documentation in Material Design documentation for principles and anatomy of radio buttons.

Published on NPM

tests

Usage

Installation

npm i --save @anypoint-web-components/anypoint-radio-button

In an HTML file

<html>
  <head>
    <script type="module">
      import '@anypoint-web-components/anypoint-radio-button/anypoint-radio-button.js';
      import '@anypoint-web-components/anypoint-radio-button/anypoint-radio-group.js';
    </script>
  </head>
  <body>
    <anypoint-radio-group selectable="anypoint-radio-button">
       <anypoint-radio-button name="a">Apple</anypoint-radio-button>
       <anypoint-radio-button name="b">Banana</anypoint-radio-button>
       <anypoint-radio-button name="c">Orange</anypoint-radio-button>
    </anypoint-radio-group>
  </body>
</html>

Development

git clone https://github.com/anypoint-web-components/anypoint-radio-button
cd anypoint-radio-button
npm install

Running the demo locally

npm start

Running the tests

npm test

Package Sidebar

Install

npm i @anypoint-web-components/anypoint-radio-button

Weekly Downloads

572

Version

0.1.10

License

Apache-2.0

Unpacked Size

52.5 kB

Total Files

17

Last publish

Collaborators

  • jarrodek
  • twoplustwoone
  • lbauret
  • carowright