Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.
This component is still in development and cannot be imported at this time.
Slots
Name
Description
(default)
The radio's label.
Properties
Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.
Property/Attribute
Reflects
Type
Default
checked
boolean
false
value
string
size
'small' | 'medium' | 'large'
'medium'
disabled
boolean
false
Events
React Event
Description
Event Detail
ods-blur
Emitted when the control loses focus.
--
ods-focus
Emitted when the control gains focus.
--
Parts
Name
Description
base
The component's base wrapper.
control
The circular container that wraps the radio's checked state.
control--checked
The radio control when the radio is checked.
checked-icon
The checked icon, an `<ods-icon>` element.
label
The container that wraps the radio's label.
Dependencies
This component automatically imports the following dependencies.