mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-02-27 18:09:09 +00:00
progress
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<script lang="ts">
|
||||
export let type: 'note' | 'warning' = 'note';
|
||||
import type { Snippet } from 'svelte';
|
||||
|
||||
let { type = 'note', children }: { type?: 'note' | 'warning'; children: Snippet } = $props();
|
||||
</script>
|
||||
|
||||
<div
|
||||
@@ -7,10 +9,12 @@
|
||||
? 'border-link'
|
||||
: 'border-destructive'} p-2 text-sm rounded-md"
|
||||
>
|
||||
<slot />
|
||||
{@render children()}
|
||||
</div>
|
||||
|
||||
<style lang="postcss">
|
||||
@reference "../../../app.css";
|
||||
|
||||
div :global(a) {
|
||||
@apply text-link;
|
||||
@apply hover:underline;
|
||||
|
||||
Reference in New Issue
Block a user