UNPKG

@vcl/vcl

Version:

The whole VCL in one package

37 lines (23 loc) 961 B
# [VCL](https://vcl.github.io/vcl/) select Select form control. ## Features A replacement of the standard HTML select form control. This component comprises only the input control, the _select-list_ is a suitable component for the drop-down that contains selectable items and opens when the input is focused. ## Usage The select is a specialization of the _embedded input group_ (which is itself made from an input and a button). The basic version allows only to select values. Note that the input is using the `readonly` property and the `readonly` class. [basic example](/demo/example-basic.html) With the `select-editable` modifier, the input also allows write access. This is useful to add new entries or allowing the input of a phrase for filtering the selectable items. [editable example](/demo/example-editable.html) ## Classes - `select` ## Modifiers - `select-editable`: Make the input writable for allow for free text input. ## Variables