Skip to content

Radio select - Web Component

...

Browser support

Parameters

The Web component uses a <z-radio-select> tag.

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescription
disabled
(optional)
booleanBlocks the interaction with the input component.
required
(optional)
booleanMarks the input component as required.
name
(optional)
stringIdentification for the field inside the form
invalid
(optional)
booleanThe forced state for set the input as invalid

The events emitted from the component are:

NamePayloadDescription
onchangestringReturns the new value of the "value" attribute

Playground

Customization

HTML Examples

Imports
html
<link rel="stylesheet" href="/0.3.7/@zurich/web-components/styles.css" />
<script type="module" src="/0.3.7/@zurich/web-components/radio-select.js"></script>
Code
html
<z-radio-select value="HTML" label="Input label" name="radio-select"
  options='[{ "text": "HTML", "value": "HTML"}, { "text": "CSS", "value": "CSS"},{ "text": "JavaScript", "value": "javascript"}]'>
</z-radio-select>