schlechtenburg/packages/core/lib/components/Button.tsx
2021-03-08 16:29:35 +01:00

23 lines
398 B
TypeScript

import { defineComponent } from 'vue';
import './Button.scss';
export const SbButton = defineComponent({
name: 'sb-button',
inheritAttrs: false,
setup(_, context) {
return () => (
<button
{...{
...context.attrs,
class: (context.attrs.class || '') + ' sb-button',
}}
>
{context.slots.default?.()}
</button>
);
},
});