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