22 lines
390 B
TypeScript
22 lines
390 B
TypeScript
import { defineComponent } from 'vue';
|
|
import './Button.scss';
|
|
|
|
export default defineComponent({
|
|
name: 'sb-button',
|
|
|
|
inheritAttrs: false,
|
|
|
|
setup(props, context) {
|
|
return () => (
|
|
<button
|
|
{...{
|
|
...context.attrs,
|
|
class: (context.attrs.class || '') + ' sb-button',
|
|
}}
|
|
>
|
|
{context.slots.default()}
|
|
</button>
|
|
);
|
|
},
|
|
});
|