forked from muicss/mui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathradio.html
More file actions
49 lines (46 loc) · 1.32 KB
/
radio.html
File metadata and controls
49 lines (46 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- for example only -->
<script src="../assets/vendor/react/0.14.6/react.js"></script>
<script src="../assets/vendor/react/0.14.6/react-dom.js"></script>
<script src="../assets/vendor/babel-core/5.8.23/browser.min.js"></script>
<!-- end -->
<link rel="stylesheet" type="text/css" href="../assets/mui/css/mui.css"/>
<script src="../assets/mui/react/mui-react.js"></script>
</head>
<body>
<h1>Radio</h1>
<div class="mui-panel">
<div id="example1"></div>
</div>
<script type="text/babel">
let Radio = mui.react.Radio;
ReactDOM.render(
<form>
<Radio
name="radioopts"
label="Option one"
value="opt1"
/>
<Radio
name="radioopts"
label="Option two"
value="opt2"
defaultChecked={true}
/>
<Radio
name="radioopts"
label="Option three is disabled"
value="opt3"
disabled={true}
/>
</form>,
document.getElementById('example1')
);
</script>
</body>
</html>