Button

In order to use button (or any other of the 'common' components), you can import it from '$lib/components'.

typescript

And then use in in your Svelte template:

html

preview

The button component is a simple Svelte component that accepts 4 props:

typescript

The button component is based on DaisyUI button so in case you need more customization, you can check out their documentation.