import React, { HTMLAttributes } from 'react'; import styled from 'styled-components'; export interface RadioItemProps extends HTMLAttributes { value?: number; checked?: boolean; name?: string; children?: React.ReactNode; } const RadioItemStyled = styled.div` display: inline-flex; align-items: center; justify-content: center; gap: 4px; > span { display: flex; align-items: center; white-space: nowrap; } `; const InputStyled = styled.input.attrs(() => ({ type: 'radio' }))` cursor: pointer; `; const RadioItem: React.FC = (props) => { const { children, checked, name, value, ...rest } = props; return ( {children} ); }; RadioItem.defaultProps = { checked: false, value: 1, name: 'radio', children: '' }; export default RadioItem;