mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-04 14:46:42 +00:00
minor ui updates to shiki
This commit is contained in:
parent
b4afcaac6c
commit
c2a75082f9
@ -2,10 +2,12 @@
|
||||
import { onMount } from "svelte"
|
||||
import { Motion, useMotionTemplate, useMotionValue } from "svelte-motion"
|
||||
import { cn } from "../../utils"
|
||||
import BorderBeam from "./BorderBeam.svelte"
|
||||
|
||||
export let gradientSize: number = 200
|
||||
export let gradientColor: string = "#262626"
|
||||
export let gradientOpacity: number = 0.8
|
||||
export let borderBeam: boolean = false
|
||||
let className: string = ""
|
||||
export { className as class }
|
||||
|
||||
@ -42,6 +44,9 @@
|
||||
className
|
||||
)}
|
||||
>
|
||||
{#if borderBeam}
|
||||
<BorderBeam size={150} duration={12} />
|
||||
{/if}
|
||||
<div class="relative z-10">
|
||||
<!-- Default -->
|
||||
<slot>
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
{#await highlighter2 then highlighter}
|
||||
<ShikiMagicMove
|
||||
class={cn("", className)}
|
||||
class={cn("p-3", className)}
|
||||
{lang}
|
||||
theme={theme ?? "vitesse-dark"}
|
||||
{highlighter}
|
||||
|
Loading…
x
Reference in New Issue
Block a user