blob: 5f32ce4e8b570efa33941dce39d4e56acda2f3d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
---
export interface Props extends Record<any, any> {
type?: string;
}
const { type, ...props } = {
...Astro.props,
} as Props;
props.type = type || 'button';
---
<button {...props}><slot /></button>
|