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

22 lines
398 B
TypeScript

import { defineComponent } from 'vue';
import './Select.scss';
export const SbSelect = defineComponent({
name: 'sb-select',
inheritAttrs: false,
setup(_, context) {
return () => (
<div class="sb-select">
<select
class="sb-select__input"
{...context.attrs}
>
{context.slots.default?.()}
</select>
</div>
);
},
});