import React from 'react';
import { Checkbox, View, Text } from '@ray-js/ray';
export default function () {
const [checked, setChecked] = React.useState(false);
return (
<View style={{ padding: '20px' }}>
<View style={{ marginBottom: '10px' }}>
<Text>默认状态:</Text>
<Checkbox />
</View>
<View style={{ marginBottom: '10px' }}>
<Text>选中状态:</Text>
<Checkbox checked />
</View>
<View style={{ marginBottom: '10px' }}>
<Text>禁用状态:</Text>
<Checkbox disabled />
</View>
<View style={{ marginBottom: '10px' }}>
<Text>自定义颜色:</Text>
<Checkbox color="#ff0000" checked />
</View>
</View>
);
}