0.0.5 • Published 1 month ago

adwaveui v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Components

  1. Input
  2. Selector
  3. Slider
  4. Switch

Input

<adw-input
    placeholder="Put in your name"
></adw-input>

Properties

PropertyDescriptionDefault
disabledIf the input is disabled or not."false"
formThe form the input belongs to.
maxlengthThe maximum length of the input.
minlengthThe minimum length of the input.
nameThe name of the input, used when submitting a form.
placeholderText displayed when the input is empty.
suggestionsList of suggested strings to display when the input is focused.
suggestionsorientationDetermines whether the list of suggestions appears above or below the input field. up or down."down"
suggestionsshowallSet to "true" to always display all the suggestions."false"
fuzzyWhen set to "true" the suggestions will be filtered using a fuzzy search algorithm as the user types. By default filtering is done using a simple string match.
typeThe type of the input. (text, password, email, etc.)"text"
valueThe current value of the input.

Selector

<adw-selector placeholder="Select option">
    <adw-option value="1" selected="true">
        Option 1
    </adw-option>
    <adw-option value="2">
        Option 2
    </adw-option>
    <adw-option value="3">
        Option 3
    </adw-option>
</adw-selector>

Properties

PropertyDescriptionDefault
disabledIf the selector is disabled or not."false"
formThe form the selector belongs to.
nameThe name of the selector, used when submitting a form.
orientationDetermines whether the list of options appears above or below the selector. up or down."down"
placeholderText displayed when no option is selected.

adw-option properties

PropertyDescriptionDefault
selectedIf the option is selected or not."false"
valueThe value of the option.

Slider

<adw-slider
    min="0"
    max="100"
    value="50"
></adw-slider>

Properties

PropertyDescriptionDefault
disabledIf the slider is disabled or not."false"
formThe form the slider belongs to.
maxThe maximum value on the slider.100
minThe minimum value on the slider.0
nameThe name of the slider, used when submitting a form.
precisionThe number of decimal places to round the value to.4
stepThe amount to increment or decrement the value by when moving the slider.1
valueThe current value of the slider.

Switch

<adw-switch
    active="true"
></adw-switch>

Properties

PropertyDescriptionDefault
disabledIf the switch is disabled or not.
formThe form the switch belongs to.
nameThe name of the switch, used when submitting a form.
activeIf the switch is active or not."false"
0.0.5

1 month ago

0.0.4

2 months ago

0.0.3

3 months ago

0.0.2

6 months ago

0.0.1

7 months ago