You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
425 B
JavaScript

export const Select = ({ options, value, setValue }) => (
<div class="input-select">
<select onInput={e => setValue?.(e.target.value)}>
{Object.entries(options).map(([k, v]) => (
<option value={k} selected={value === k}>
{v}
</option>
))}
</select>
<span class="material-symbols-outlined">expand_more</span>
</div>
)