Code
Props
Props
Data Type
Required
value
string
id
string
name
string
label
string
error
boolean
disabled
boolean
onChange
fuction event
Event Response
Property
Data Type
id
string
name
string
label
string
value
string
onChange
Every time the user clicks on the Radio component, the onChange event is going to be executed together the custom function facilitated by the developer. Beside that, the developer can use the function event parameter to get information from the component, like if it was a native web checkbox.
Components Dependency
For this component elaboration there were used the following internal components:
Live Demo
For detailed code usage documentation, see the Storybooks for each framework below.
React
Last updated