Skip to content
Devix Open Source

Playground

Turn the options and watch it change. The code below changes with it, in whichever framework you are using — copy it and you have what is on the screen.

Live
import { createCombobox } from '@devix-labs/combobox';
import '@devix-labs/combobox/styles.css';

createCombobox(document.querySelector('#target'), {
  options: [
    {"value":"laravel","label":"Laravel"},
    {"value":"react","label":"React"},
    {"value":"vue","label":"Vue"},
    {"value":"svelte","label":"Svelte"},
    {"value":"typescript","label":"TypeScript"},
    {"value":"tailwind","label":"Tailwind CSS"}
  ],
  single: false,
  creatable: true,
  maxTags: 0,
  reorder: true,
  clearable: true,
  searchable: true,
  placeholder: 'Add a skill'
});

Every option here is in the documentation, along with the ones that are not worth a control.