diff options
Diffstat (limited to 'docs-www/src/components/Note.astro')
-rw-r--r-- | docs-www/src/components/Note.astro | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs-www/src/components/Note.astro b/docs-www/src/components/Note.astro index 46940ddf8..c57ede3a0 100644 --- a/docs-www/src/components/Note.astro +++ b/docs-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}`}> |