1
0

index.js 438 B

1234567891011121314151617181920
  1. import React from 'react';
  2. import './index.less';
  3. import Button from '../Button';
  4. function Radio(props) {
  5. const { list, value } = props;
  6. return (
  7. <div className="radio">
  8. {list.map(item => {
  9. return (
  10. <Button theme={item.key === value ? 'theme' : 'default'} size="small" radius>
  11. {item.title}
  12. </Button>
  13. );
  14. })}
  15. </div>
  16. );
  17. }
  18. Radio.propTypes = {};
  19. export default Radio;