Skip to content

Instantly share code, notes, and snippets.

@youssof707
Created September 14, 2020 01:12
Show Gist options
  • Select an option

  • Save youssof707/843f7ad36a0ad6b830c6d1b8e2b31914 to your computer and use it in GitHub Desktop.

Select an option

Save youssof707/843f7ad36a0ad6b830c6d1b8e2b31914 to your computer and use it in GitHub Desktop.
TouchPoint UI RadioGroup Exampls
function Demo(props){
const [chosenOne, setChosenOne] = useState(1)
return <RadioGroup value={chosenOne} onChange={setChosenOne}>
<RadioButton value = {1}>Option 1</RadioButton>
<RadioButton value = {2}>Option 2</RadioButton>
<RadioButton value = {3}>Option 3</RadioButton>
<RadioButton value = {4}>Option 4</RadioButton>
</RadioGroup>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment