Mobile & Desktop usage

Use the select/combobox for both mobile and desktop or set it up responsively.

The main difference between the two rendering modes is how the picker is laid out. Set the touchUi option to false and the component shows up suitable for larger screens and pointer interaction while setting it to true renders it suitable for touch screens.

Use it on an existing form field, custom input, native select or use it on Mobiscroll form fields. You can also embed it directly into your page. When linked to an input, the component will be shown on focus or when someone clicks on the field. Alternatively, you can leave the input editable and show the component only on a button click.

Handle different screen sizes by setting it up responsively  Check out the responsive demo →
Get started with this example

Demo

<script setup>
const myData = [
  { text: 'Atlanta', value: 'atl' },
  { text: 'Berlin', value: 'ber'},
  { text: 'Chicago', value: 'chi'},
  { text: 'London', value: 'lon'}
]
</script>

<template>
  <MbscSelect :data="myData" inputComponent="input" :touchUi="" />
</template>
<script setup>
const myData = [
  { text: 'Atlanta', value: 'atl' },
  { text: 'Berlin', value: 'ber'},
  { text: 'Chicago', value: 'chi'},
  { text: 'London', value: 'lon'}
]
const isPickerOpen = ref(false)
</script>

<template>
  <MbscSelect
    inputComponent="input"
    :data="myData"
    :showOnClick="false"
    :showOnFocus="false"
    :touchUi=""
    :isOpen="isPickerOpen"
    @close="isPickerOpen = false"
  />
  <MbscButton @click="isPickerOpen = true">Show picker</MbscButton>
</template>
<script setup>
const myData = [
  { text: 'Atlanta', value: 'atl' },
  { text: 'Berlin', value: 'ber'},
  { text: 'Chicago', value: 'chi'},
  { text: 'London', value: 'lon'}
]
</script>

<template>
  <MbscSelect :data="myData" :touchUi="" />
</template>
<script setup>
const myData = [
  { text: 'Atlanta', value: 'atl' },
  { text: 'Berlin', value: 'ber'},
  { text: 'Chicago', value: 'chi'},
  { text: 'London', value: 'lon'}
]
</script>

<template>
  <MbscSelect :data="myData" display="inline" :touchUi="" />
</template>
Use the picker with any inputs & show on focus/click
Disable onClick/onFocus and only show on button
Use the picker with a Mobiscroll input

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.