13 lines
205 B
Text
13 lines
205 B
Text
---
|
|
export interface Props extends Record<any, any> {
|
|
type?: string;
|
|
}
|
|
|
|
const { type, ...props } = {
|
|
...Astro.props,
|
|
} as Props;
|
|
|
|
props.type = type || 'button';
|
|
---
|
|
|
|
<button {...props}><slot /></button>
|