Files
squoosh/src/components/select/index.tsx
2018-11-06 13:33:08 +00:00

17 lines
444 B
TypeScript

import { h, Component } from 'preact';
import * as style from './style.scss';
interface Props extends JSX.HTMLAttributes {}
interface State {}
export default class Select extends Component<Props, State> {
render(props: Props) {
return (
<div class={style.select}>
<select class={style.nativeSelect} {...props}/>
<svg class={style.arrow} viewBox="0 0 10 5"><path d="M0 0l5 5 5-5z"/></svg>
</div>
);
}
}