diff options
Diffstat (limited to 'examples/starter/src/components/Logo.astro')
-rw-r--r-- | examples/starter/src/components/Logo.astro | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/starter/src/components/Logo.astro b/examples/starter/src/components/Logo.astro new file mode 100644 index 000000000..02c68c7f0 --- /dev/null +++ b/examples/starter/src/components/Logo.astro @@ -0,0 +1,9 @@ +--- +// Export a "Props" interface to . +export interface Props { + height?: number, + width?: number, +} +const {height = 80, width = 60 } = Astro.props; +--- +<img height={height} width={width} src="/logo.svg" alt="Astro logo"> |