You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
430 B

  1. import './input-checkbox-radio.scss';
  2. import {createElement} from "../../_global/scripts/helpers";
  3. export const createInputCheckboxRadio = ({
  4. type= 'checkbox',
  5. checked = false,
  6. id = 'accepted',
  7. name = 'accepted',
  8. isRequired = true,
  9. }) => {
  10. const input = createElement('input', []);
  11. input.id = id;
  12. input.name = name;
  13. input.type = type;
  14. input.checked = checked;
  15. input.required = isRequired;
  16. return input;
  17. }