Select

Last modified by Manuel Leduc on 2026/12/01 13:44

Implementations

<x-select
  label="label"
  help="Help Message"
  :items="['Item 1', 'Item 2', 'Item 3']"
  required
></x-select>

An item can also be an object with a distinct value and label. The select displays the label and stores the value in its v-model. Use it when the label is not a suitable value, for instance when it is translated or when several items share the same label. Cristal supports it since 1.10.0.

<x-select
  v-model="linkType"
  label="Link type"
  :items="[
    { value: 'page', label: t('linkType.page') },
    { value: 'url', label: t('linkType.url') },
  ]"
></x-select>

Vuetify

vuetify1.png

vuetify2.png

Shoelace

shoelace1.png

shoelace2.png

API

The API is documented in XS documentation.

France 2030 Logo

This project is being financed by the French State as part of the France 2030 program

Ce projet est financé par l’État Français dans le cadre de France 2030

  • Powered by XWiki 18.4.6 - node2. Hosted and managed by XWiki SAS

Get Connected