2022-10-10 16:40:59 +02:00

10 lines
223 B
JavaScript

/* eslint-disable no-undef */
export const Button = (args) => {
const button = document.createElement('button');
button.innerHTML = args.children;
button.addEventListener('click', args.onClick);
return button;
};