diff options
Diffstat (limited to 'examples/component/packages/my-component')
-rw-r--r-- | examples/component/packages/my-component/Button.astro | 2 | ||||
-rw-r--r-- | examples/component/packages/my-component/Heading.astro | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/component/packages/my-component/Button.astro b/examples/component/packages/my-component/Button.astro index 5f32ce4e8..69b3b5eb5 100644 --- a/examples/component/packages/my-component/Button.astro +++ b/examples/component/packages/my-component/Button.astro @@ -7,7 +7,7 @@ const { type, ...props } = { ...Astro.props, } as Props; -props.type = type || 'button'; +props.type = type || "button"; --- <button {...props}><slot /></button> diff --git a/examples/component/packages/my-component/Heading.astro b/examples/component/packages/my-component/Heading.astro index 813c0c11b..00f8926cc 100644 --- a/examples/component/packages/my-component/Heading.astro +++ b/examples/component/packages/my-component/Heading.astro @@ -8,8 +8,8 @@ const { level, role, ...props } = { ...Astro.props, } as Props; -props.role = role || 'heading'; -props['aria-level'] = level || '1'; +props.role = role || "heading"; +props["aria-level"] = level || "1"; --- <h {...props}><slot /></h> |