diff options
author | 2022-09-07 18:16:54 -0400 | |
---|---|---|
committer | 2022-09-07 18:16:54 -0400 | |
commit | d6adb67ae4909d790aa44e1d52cfea3e8ad7663f (patch) | |
tree | 3b7dc0bd69da90ed290490ec5629898941e19a92 /examples/component/packages/my-component/Button.astro | |
parent | f165353e7abe9472a6096324154a4801fac46c66 (diff) | |
download | astro-d6adb67ae4909d790aa44e1d52cfea3e8ad7663f.tar.gz astro-d6adb67ae4909d790aa44e1d52cfea3e8ad7663f.tar.zst astro-d6adb67ae4909d790aa44e1d52cfea3e8ad7663f.zip |
chore: update component template (#4540)
Co-authored-by: Nate Moore <nate@astro.build>
Diffstat (limited to 'examples/component/packages/my-component/Button.astro')
-rw-r--r-- | examples/component/packages/my-component/Button.astro | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/examples/component/packages/my-component/Button.astro b/examples/component/packages/my-component/Button.astro deleted file mode 100644 index 87943fa28..000000000 --- a/examples/component/packages/my-component/Button.astro +++ /dev/null @@ -1,13 +0,0 @@ ---- -export interface Props extends Record<any, any> { - type?: string; -} - -const { type, ...props } = { - ...Astro.props, -}; - -props.type = type || 'button'; ---- - -<button {...props}><slot /></button> |