WesselBBD / Grad-WebLevelUp

Our 3rd level up involving web technologies
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Added button #28

Closed TiaanTerblanche closed 2 years ago

TiaanTerblanche commented 2 years ago

Button

Added button component. Might play around with the size a bit more.

Using it

import { createButton } from "./components/button/button.js";

const button = createButton("Click me")
const [body] = document.getElementsByTagName("body");

  body.appendChild(button);