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