Input

Name
Name
Can't leave empty
Name

Default

Name

Icon

You can append or prepend an icon with icon prop or named icon slot. In order to customize you own icon pack please refer to icons section.

Icon
Icon After
Slot Icon

Events and attrs

All HTML input events and attrs can be used. for example type="password":

Label & placeholder

Seme label

Before & After slot

Clearable Input
Website Address
https://

Tag

tag prop can both be and html element as string or a Component. For example when you want to render textarea instead of input you can use tag="texarea".

Or when you want to pass some directives to the input element, since input is nested inside RInput, you can create you own input component and pass it down as tag for example: <RInput v-model="something" :tag="MyInputWithDirectives" />.

Textarea
value is initally set by directive

States

You can modify state of input using boolean props of error or message. Also accepts message prop.

Email
Email Can't be empty

Color

Available values are prm, yellow, red, green, any HEX or RGBA/RGB value.

Props

NameTypeRequiredDefault ValueDescription
modelValuestringNoundefinedThe value of the input element.
labelstringNoundefinedThe label displayed above the input element.
iconstringNoundefinedThe name of the icon to be displayed inside the input element.
placeholderstringNoundefinedThe text displayed inside the input element before the user types anything.
messagestringNoundefinedThe message displayed below the input element.
iconAfterbooleanNofalseIf true, displays the icon after the input element instead of before.
sharpbooleanNofalseIf true, adds sharp corners to the input element.
colorstringNoundefinedThe color of the input element.
disabledbooleanNofalseIf true, disables the input element.
errorbooleanNofalseIf true, adds error styling to the input element.
containerClassstringNoundefinedAdditional class name(s) to apply to the container element of the input component.
tagstring | ComponentNoundefinedThe component to be rendered instead of input.

Events

All events/attrs passed down will be passed to input component.