format: whole project
This commit is contained in:
1 parent
b883b5f6e0
commit
80269cf275
79 files changed
+590
-612
No files matched your search
@@ -2,18 +2,13 @@
|
||||
import { Material, Popover } from 'mono-svelte'
|
||||
|
||||
interface Props {
|
||||
href: string;
|
||||
size?: keyof typeof sizes;
|
||||
title?: string;
|
||||
children?: import('svelte').Snippet;
|
||||
href: string
|
||||
size?: keyof typeof sizes
|
||||
title?: string
|
||||
children?: import('svelte').Snippet
|
||||
}
|
||||
|
||||
let {
|
||||
href,
|
||||
size = 'medium',
|
||||
title = '',
|
||||
children
|
||||
}: Props = $props();
|
||||
let { href, size = 'medium', title = '', children }: Props = $props()
|
||||
|
||||
const sizes = {
|
||||
large: 'h-24',
|
||||
@@ -24,13 +19,12 @@
|
||||
|
||||
<Popover openOnHover placement="right">
|
||||
{#snippet target()}
|
||||
<a {href} >
|
||||
<a {href}>
|
||||
{@render children?.()}
|
||||
</a>
|
||||
{/snippet}
|
||||
{#snippet popover()}
|
||||
<Material
|
||||
|
||||
padding="none"
|
||||
rounding="xl"
|
||||
elevation="medium"
|
||||
|
||||
Reference in new issue
Block a user