Created
September 14, 2020 01:12
-
-
Save youssof707/843f7ad36a0ad6b830c6d1b8e2b31914 to your computer and use it in GitHub Desktop.
TouchPoint UI RadioGroup Exampls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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