1234567891011121314 |
- import React from 'react';
- import './index.less';
- function RadioItem(props) {
- const { className = '', checked, theme = 'default', onClick } = props;
- return (
- <div
- className={`radio-item ${className} ${theme} ${checked ? 'checked' : ''}`}
- onClick={() => !checked && onClick && onClick()}
- />
- );
- }
- RadioItem.propTypes = {};
- export default RadioItem;
|