mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
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>
|