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