feat: add some stuff

This commit is contained in:
2024-03-28 18:30:52 +01:00
parent 31b24de86c
commit d4128840b9
196 changed files with 3393 additions and 390 deletions

View File

@@ -0,0 +1,18 @@
<script lang="ts">
export let classes = "";
</script>
<button class="bg-light p-2 rounded-md ml-2 px-4 {classes}">
<slot />
</button>
<style>
button {
background-color: var(--background-light);
border-radius: var(--border-radius-md);
border: none;
cursor: pointer;
font-size: var(--font-size-md);
transition: background-color 0.3s;
}
</style>

View File

@@ -0,0 +1,5 @@
<script lang="ts">
export let icon: string;
</script>
<span class="i-tabler-{icon}" />

View File

@@ -0,0 +1,12 @@
import _Button from './Button.svelte';
import Icon from './Icon.svelte';
const Button = {
..._Button,
Icon,
} as typeof _Button & {
Icon: typeof Icon;
};
export { Button }