UI LibraryUI Library
Guide
Components
Styling
Repo
Guide
Components
Styling
Repo
  • Guide

    • Introduction
    • Getting Started
  • Components

    • CataUiAccordion
    • CataUiAccordionItem
    • CataUiAlert
    • CataUiAnchorMenu
    • CataUiBadge
    • CataUiButton
    • CataUiCollapse
    • CataUiDraggable
    • CataUiDropdown
    • CataUiDropover
    • CataUiFileTree
    • CataUiIcon
    • CataUiIconSwitch
    • CataUiInput
    • CataUiInputCheckbox
    • CataUiInputColor
    • CataUiInputDate
    • CataUiInputGroup
    • CataUiInputRadio
    • CataUiInputSearch
    • CataUiInputSelect
    • CataUiMasonry
    • CataUiMasonryTile
    • CataUiLogo
    • CataUiModal
    • CataUiPaginate
    • CataUiProgress
    • CataUiSpinner
    • CataUiStatusLabel
    • CataUiSwitch
    • CataUiTable
    • CataUiTableAG
    • CataUiTableFooter
    • CataUiTabs
    • CataUiTabSwitch
    • CataUiTooltip
  • Styling

    • Colors
    • Icons
    • Typography
    • Utils

CataUiDropover

A dropover component that displays a list of selectable options in a dropdown menu. It allows users to select an option from a list, with the currently selected option always displayed at the top. Each option can include an icon and label.

<CataUiDropover :disabled="false" :options="options" v-model="selectedValue" />

Props

PropDescriptionTypeDefaultRequiredOptions
disabledDisables the dropover component when set to trueBooleanfalsetrue, false
optionsArray of options to display in the dropoverArraytrue
v-modelThe currently selected option's valueString, Numbertrue

Option Properties

Each option in the options array should have the following structure:

PropertyDescriptionTypeRequired
iconIcon name to display next to the option labelString
labelText to display for the optionStringtrue
valueUnique identifier for the option (used for v-model binding)String, Numbertrue

Examples

Basic Usage

// Template
<CataUiDropover :options="deviceOptions" v-model="selectedDevice" />

// Script
import { ref } from 'vue';

const deviceOptions = ref([
  {
    label: 'Desktop',
    icon: 'bi-laptop',
    value: 'desktop'
  },
  {
    label: 'Mobile phone',
    icon: 'bi-phone',
    value: 'mobile-phone'
  },
  {
    label: 'Tablet',
    icon: 'bi-tablet',
    value: 'tablet'
  }
]);

const selectedDevice = ref('desktop');

Disabled Dropover

<CataUiDropover :options="deviceOptions" v-model="selectedDevice" :disabled="true" />
Prev
CataUiDropdown
Next
CataUiFileTree