Skip to content

Choosen

Choosen is select with modal dialog gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options.

Examples

Choosen

Code
vue
<script setup lang="ts">
import { BaseChoosen } from '@point-hub/papp'
import { ref } from 'vue'
const options = ref([
  {
    _id: '1',
    label: 'Jane'
  },
  {
    _id: '2',
    label: 'John Doe'
  }
])

const selected = ref()
</script>

<template>
  <base-choosen title="Example" :options="options" v-model:selected="selected" />
</template>

Choosen API

Props

NameTypeDefaultDescription
v-modelstringv-model is required.
v-model:errorsstring[]Input error message.
modeinput textinputChoosen mode.
labelstringChoosen label.
labelstringChoosen label.
textstringChoosen text.
descriptionstringInput description.
placeholderstringInput placeholder.
layouthorizontal verticalverticalInput layout.
requiredbooleanfalseif true choosen is required.
disabledbooleanfalseif true choosen is disabled.
helpersstring[]Input helper message.

Released under the MIT License.