MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / Radio

Function Radio

src/components/kit/Radio.tsx:21–37  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

19});
20
21const Radio = (props: Props) => {
22 const { value, disabled, className, type, checked, onChange } = {
23 ...getDefaultProps(),
24 ...props,
25 };
26
27 return (
28 <input
29 className={`${className || ""} h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600 cursor-pointer`}
30 type={type}
31 disabled={disabled}
32 value={value}
33 checked={checked}
34 onChange={(e) => onChange(e.target.value)}
35 />
36 );
37};
38
39export default Radio;

Callers

nothing calls this directly

Calls 1

getDefaultPropsFunction · 0.70

Tested by

no test coverage detected