Skip to content

Latest commit

 

History

History

uui-radio

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

uui-radio

npm

See it in action

Preview the component on Storybook

Installation

ES imports

npm i @umbraco-ui/uui-radio

Import the registration of <uui-radio-group> and <uui-radio> via:

import '@umbraco-ui/uui-radio';

When looking to leverage the UUIRadioGroupElement or UUIRadioElement base class as a type and/or for extension purposes, do so via:

import { UUIRadioGroupElement } from '@umbraco-ui/uui-radio';
import { UUIRadioElement } from '@umbraco-ui/uui-radio';

Usage

<uui-radio-group name="Options">
  <uui-radio value="1">Option 1</uui-radio>
  <uui-radio value="2">Option 2</uui-radio>
  <uui-radio value="3">Option 3</uui-radio>
  <uui-radio value="4">Option 4</uui-radio>
</uui-radio-group>