Skip to content

Select

Select control backed by an options array and a disabled state.

Usage

vue
<script setup>
import { ref } from "vue";
import { ArchSelect } from "@archora/ui";

const value = ref("");
const options = [
  { value: "open", label: "Open" },
  { value: "closed", label: "Closed" }
];
</script>

<template>
  <ArchSelect v-model="value" :options="options" placeholder="Choose status" />
</template>

Live sandbox

Select can be tested directly on this page.

interactive
<ArchSelect v-model="value" :options="options" />

Props

PropTypeDefaultDescription
options{ value: string; label: string; disabled?: boolean }[]-Option list.
modelValuestring-v-model value.
placeholderstring"Select option"Placeholder.
disabledbooleanfalseDisables the component.

Events

EventPayloadDescription
update:modelValuevalue: stringmodelValue change.
changevalue: stringValue change.