Component mockups.
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<script lang="ts" module>
|
||||
export const icons = {
|
||||
plus: 'M12 5v14M5 12h14',
|
||||
search: 'M17 10.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Zm-1 5.5 4 4',
|
||||
chevron: 'm8 10 4 4 4-4',
|
||||
return: 'M8 7h8a5 5 0 0 1 0 10H5m4-4-4 4 4 4',
|
||||
check: 'm5 12 4 4L19 6',
|
||||
close: 'm6 6 12 12M6 18 18 6',
|
||||
download: 'M12 3v12m-4-4 4 4 4-4M5 17v4h14v-4',
|
||||
calendar:
|
||||
'M6 5h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2ZM8 3v4m8-4v4M4 11h16',
|
||||
arrow: 'M5 12h14m-5-5 5 5-5 5',
|
||||
more: 'M5 12h.01M12 12h.01M19 12h.01',
|
||||
document: 'M14 3H5v18h14V8Zm0 0v5h5M8 12h8m-8 4h6',
|
||||
mail: 'M5 5h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm-1 1 8 6 8-6',
|
||||
alert: 'M12 7v6m0 4v.01'
|
||||
} as const;
|
||||
|
||||
export type IconName = keyof typeof icons;
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
let {
|
||||
name,
|
||||
size = 20,
|
||||
class: className = ''
|
||||
}: { name: IconName; size?: number; class?: string } = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
width={size}
|
||||
height={size}
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="1.6"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true"
|
||||
class={['shrink-0', className]}
|
||||
>
|
||||
<path d={icons[name]} />
|
||||
</svg>
|
||||
Reference in New Issue
Block a user