For detailed instructions, view our install section in this documentation. Make sure all of the dependencies and polyfills are loaded to make the component cross-browser compatible.
Follow these steps to successfully build out a radio component. Start by adding a pearson-radio element.
Add a label and groupName attribute.
Add any number of input elements inside the pearson-radio using the name attribute as the value you want to display for that input.
All attributes in this API are required.
|"groupOne"||The name of the radio group.|
All attributes in this API are optional.
|unset||The label you want displayed with radio group.|
pearson-radio component emits one event:
|Will fire when a radio button in the group is selected.|
Do you prefer to use HTML instead of a web component? No problem, use the markup below along with CSS.