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

25 lines
460 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';
export default defineComponent({
name: 'sb-select',
inheritAttrs: false,
setup(props, context) {
return () => (
<div class="sb-select">
<select
class="sb-select__input"
{...{
attrs: context.attrs,
on: context.listeners,
}}
>
{context.slots.default()}
</select>
</div>
);
},
});