Files
oa/documentation/elements/forms/select/select-line-documentation.md
2025-05-24 01:49:48 +09:00

1.5 KiB

state
state
input

Line Icons

Vuero VSelect can have icons attached to them. They work pretty well with Line Icons. You can add an icon element inside the select. Please refer to the code example for more details about usage.

<script setup lang="ts">

const input = ref('')
</script>

<template>
  <VField>
    <VControl class="has-icons-left" icon="lnil lnil-basketball">
      <VSelect v-model="input">
        <VOption value="">
          Select a Hero
        </VOption>
        <VOption value="Superman">
          Superman
        </VOption>
        <VOption value="Batman">
          Batman
        </VOption>
        <VOption value="Spiderman">
          Spiderman
        </VOption>
        <VOption value="Deadpool">
          Deadpool
        </VOption>
        <VOption value="Spawn">
          Spawn
        </VOption>
        <VOption value="Galactus">
          Galactus
        </VOption>
      </VSelect>
    </VControl>
  </VField>
</template>
Select a Hero Superman Batman Spiderman Deadpool Spawn Galactus