You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
403 B
JavaScript
14 lines
403 B
JavaScript
import React from 'react';
|
|
|
|
export default function Checkbox({ name, value, handleChange }) {
|
|
return (
|
|
<input
|
|
type="checkbox"
|
|
name={name}
|
|
value={value}
|
|
className="rounded text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
|
|
onChange={(e) => handleChange(e)}
|
|
/>
|
|
);
|
|
}
|