schlechtenburg/packages/core/lib/components/Select.tsx

22 lines
400 B
TypeScript
Raw Normal View History

2020-12-27 21:32:43 +00:00
import { defineComponent } from 'vue';
2020-05-28 20:55:03 +00:00
import './Select.scss';
2020-12-30 13:34:23 +00:00
export const SbSelect = defineComponent({
2020-05-28 20:55:03 +00:00
name: 'sb-select',
inheritAttrs: false,
setup(props, context) {
return () => (
<div class="sb-select">
<select
class="sb-select__input"
2020-12-30 01:32:46 +00:00
{...context.attrs}
2020-05-28 20:55:03 +00:00
>
{context.slots.default()}
</select>
</div>
);
},
});