feat: Add instance info
This commit is contained in:
1 parent
3159583654
commit
4b23c98dbd
11 files changed
+189
-68
No files matched your search
@@ -0,0 +1,7 @@
|
||||
<div
|
||||
class="sticky top-4 bg-white border border-slate-200
|
||||
dark:border-zinc-800 dark:bg-zinc-900 break-words hidden lg:flex
|
||||
flex-col gap-4 p-8 max-w-sm rounded-md h-max max-h-[calc(100vh-2rem)] overflow-auto"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<script lang="ts">
|
||||
export let number: number
|
||||
export let locale: string = 'en'
|
||||
export let options: Intl.NumberFormatOptions = {
|
||||
notation: 'compact',
|
||||
}
|
||||
</script>
|
||||
|
||||
<span>{Intl.NumberFormat(locale, options).format(number)}</span>
|
||||
Reference in new issue
Block a user