2021-12-17 13:47:59 +00:00
|
|
|
---
|
|
|
|
export interface Props extends Record<any, any> {
|
2021-12-22 21:11:05 +00:00
|
|
|
type?: string;
|
2021-12-17 13:47:59 +00:00
|
|
|
}
|
|
|
|
|
2021-12-22 21:11:05 +00:00
|
|
|
const { type, ...props } = {
|
|
|
|
...Astro.props,
|
|
|
|
} as Props;
|
2021-12-17 13:47:59 +00:00
|
|
|
|
2021-12-22 21:11:05 +00:00
|
|
|
props.type = type || 'button';
|
2021-12-17 13:47:59 +00:00
|
|
|
---
|
2021-12-22 21:11:05 +00:00
|
|
|
|
|
|
|
<button {...props}><slot /></button>
|