Custom select elements & more form work

This commit is contained in:
Jake Archibald
2018-10-18 08:17:39 +01:00
parent 2138154ec5
commit 91d165cab9
9 changed files with 119 additions and 56 deletions

View File

@@ -0,0 +1,16 @@
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>
);
}
}