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