diff options
Diffstat (limited to 'examples/component/packages/my-component/Button.astro')
-rw-r--r-- | examples/component/packages/my-component/Button.astro | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/examples/component/packages/my-component/Button.astro b/examples/component/packages/my-component/Button.astro index d853628a1..5f32ce4e8 100644 --- a/examples/component/packages/my-component/Button.astro +++ b/examples/component/packages/my-component/Button.astro @@ -1,15 +1,13 @@ --- export interface Props extends Record<any, any> { - type?: string + type?: string; } -const { - type, - ...props -} = { - ...Astro.props -} as Props +const { type, ...props } = { + ...Astro.props, +} as Props; -props.type = type || 'button' +props.type = type || 'button'; --- -<button {...props}><slot /></button>
\ No newline at end of file + +<button {...props}><slot /></button> |