diff options
Diffstat (limited to 'www/src/components/Note.astro')
-rw-r--r-- | www/src/components/Note.astro | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/www/src/components/Note.astro b/www/src/components/Note.astro index 3618e3020..12fc396bc 100644 --- a/www/src/components/Note.astro +++ b/www/src/components/Note.astro @@ -1,6 +1,9 @@ --- -export let type = "tip"; -export let title; +export interface Props { + title: string; + type?: 'tip' | 'warning' | 'error' +} +const { type = 'tip', title } = Astro.props; --- <aside class={`note type-${type}`}> |