import React from 'react';
import { View, Checkbox, Radio, Switch, Text, Label } from '@ray-js/ray';
export default function () {
return (
<View style={{ padding: '20px' }}>
<View style={{ marginBottom: '16px' }}>
<Checkbox id="checkbox1" />
<Label htmlFor="checkbox1">
<Text style={{ marginLeft: '8px' }}>Control Checkbox via htmlFor</Text>
</Label>
</View>
<View style={{ marginBottom: '16px' }}>
<Radio id="radio1" />
<Label htmlFor="radio1">
<Text style={{ marginLeft: '8px' }}>Control Radio via htmlFor</Text>
</Label>
</View>
<View style={{ marginBottom: '16px' }}>
<Switch id="switch1" />
<Label htmlFor="switch1">
<Text style={{ marginLeft: '8px' }}>Control Switch via htmlFor</Text>
</Label>
</View>
</View>
);
}