chore: base form (#23101)

This commit is contained in:
zxhlyh
2025-07-29 15:37:16 +08:00
committed by GitHub
parent 27f400e13f
commit 4c65a8091a
5 changed files with 58 additions and 5 deletions

View File

@@ -5,13 +5,21 @@ import cn from '@/utils/classnames'
type Props = {
isChecked: boolean
className?: string
}
const RadioUI: FC<Props> = ({
isChecked,
className,
}) => {
return (
<div className={cn(isChecked ? 'border-[5px] border-components-radio-border-checked' : 'border-[2px] border-components-radio-border', 'h-4 w-4 rounded-full')}>
<div
className={cn(
isChecked ? 'border-[5px] border-components-radio-border-checked' : 'border-[2px] border-components-radio-border',
'h-4 w-4 rounded-full',
className,
)}
>
</div>
)
}