More option styles

This commit is contained in:
Jake Archibald
2020-12-05 15:36:03 +00:00
parent a88d562f36
commit 0797ce99c0
7 changed files with 29 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
import { h, Component } from 'preact';
import * as style from './style.css';
import 'add-css:./style.css';
import { Arrow } from 'client/lazy-app/icons';
interface Props extends preact.JSX.HTMLAttributes {
large?: boolean;
@@ -18,9 +19,9 @@ export default class Select extends Component<Props, State> {
class={`${style.builtinSelect} ${large ? style.large : ''}`}
{...otherProps}
/>
<svg class={style.arrow} viewBox="0 0 10 5">
<path d="M0 0l5 5 5-5z" />
</svg>
<div class={style.arrow}>
<Arrow />
</div>
</div>
);
}