Skip to content

hcarmona/paper-radio-group

This branch is 74 commits behind PolymerElements/paper-radio-group:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

99ba70d · Mar 10, 2017
Mar 23, 2016
May 18, 2016
May 18, 2016
May 18, 2015
Nov 1, 2016
May 17, 2016
Feb 4, 2016
Sep 29, 2016
May 26, 2015
May 26, 2015
Mar 10, 2017

Repository files navigation

Build status

Demo and API docs

##<paper-radio-group>

Material design: Radio button

paper-radio-group allows user to select at most one radio button from a set. Checking one radio button that belongs to a radio group unchecks any previously checked radio button within the same group. Use selected to get or set the selected radio button.

The inside the group must have the name attribute set.

Example:

<paper-radio-group selected="small">
  <paper-radio-button name="small">Small</paper-radio-button>
  <paper-radio-button name="medium">Medium</paper-radio-button>
  <paper-radio-button name="large">Large</paper-radio-button>
</paper-radio-group>

Radio-button-groups can be made optional, and allow zero buttons to be selected:

<paper-radio-group selected="small" allow-empty-selection>
  <paper-radio-button name="small">Small</paper-radio-button>
  <paper-radio-button name="medium">Medium</paper-radio-button>
  <paper-radio-button name="large">Large</paper-radio-button>
</paper-radio-group>

See paper-radio-button for more information about paper-radio-button.

Custom property Description Default
--paper-radio-group-item-padding The padding of the item 12px

About

A group of Material Design radio buttons

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 100.0%