mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
28 lines
739 B
Svelte
28 lines
739 B
Svelte
<script lang="ts">
|
|
import { FormItem } from '.';
|
|
|
|
export let label: string;
|
|
export let id: string;
|
|
export let value: string;
|
|
export let required = false;
|
|
export let disabled = false;
|
|
export let options: {
|
|
value: string;
|
|
label: string;
|
|
}[];
|
|
</script>
|
|
|
|
<FormItem>
|
|
<label class="label" for={id}>{label}</label>
|
|
<div class="select">
|
|
<select bind:value {id} {required} {disabled}>
|
|
{#each options as option}
|
|
<option value={option.value} selected={option.value === value}>
|
|
{option.label}
|
|
</option>
|
|
{/each}
|
|
</select>
|
|
<span class="icon-down-open" aria-hidden="true" />
|
|
</div>
|
|
</FormItem>
|