Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/svleek. simple but beautiful documentation generator from markdown flo-bit.github.io/svleek
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536<script lang="ts"> /* supports light and dark mode
example usage: // add this to the script tag import NeutralLink from '$lib/ui-components/elements/buttons/NeutralLink.svelte';
// add this to the markup <NeutralLink href="link">Say hello!</NeutralLink> */
export let onClick = () => {}; export let type: 'button' | 'submit' | 'reset' | undefined = undefined;
export let href = '';
let classes = ''; export { classes as class };</script>
{#if href} <a {href} {type} class="text-sm font-semibold leading-6 text-neutral-900 dark:text-white {classes}"><slot></slot></a >{:else} <button {type} on:click={onClick} class="text-sm font-semibold leading-6 text-neutral-900 dark:text-white {classes}" ><slot></slot></button >{/if}