diff options
author | 2021-12-22 16:11:05 -0500 | |
---|---|---|
committer | 2021-12-22 16:11:05 -0500 | |
commit | 6ddd7678ffb6598ae6e263706813cb5e94535f02 (patch) | |
tree | d4b45f7590b59c3574bd6593b17d8066f71007c6 /examples/component/packages/my-component/Button.astro | |
parent | 305ce4182fbe89abcfb88008ddce178bd8863b6a (diff) | |
download | astro-6ddd7678ffb6598ae6e263706813cb5e94535f02.tar.gz astro-6ddd7678ffb6598ae6e263706813cb5e94535f02.tar.zst astro-6ddd7678ffb6598ae6e263706813cb5e94535f02.zip |
Use accessible indentation (#2253)
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> |