Skip to content

RangeInput ⚠️ Experimental

The RangeInput component can be used imported from:

Playground

Attention!

The localization format of the input comes from the format settings of the client's operation system.

Parameters

Events

This component has events. Check the documentation about how to use the events.

NamePayloadDescription
change[number, number]Returns the new value of the model
restartedvoidEmitted on value reset

Slots

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription
help-textspanSlot for help text
labelspanSlot for label

Parameters use

Check the documentation about how to use the parameters.

model

Attention!

If you hardcode this value, it will not be reactive and the selection won't change. Use a variable instead and, ideally, a closed loop.

The model attribute is used to model the selected cards.

label

The label parameter is used to set the text label of the component. Make sure you always use it.

Can also use the label slot:

Range input

config

The config parameter is used to set the shape of the input between lined and shaped. Being omitted will render the default shaped shape.

help-text

The help-text parameter is used to provide additional assistance to the user.

It can also use the help-text slot:

Help text

Flags

disabled

The attribute disabled will block the interaction with the component.

invalid

The invalid attribute will set the component as invalid.

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

HTML Examples

CodeSandbox example