Skip to content

OrInput

An input element to take a users input

Basic

html
<or-input v-model="text" placeholder="Some text here" />
<or-input v-model="text" placeholder="Some text here" />

Icons ( Ornament uses RemixIcons )

html
<or-input v-model="text" placeholder="Some text here" beforeIcon="lock-line" afterIcon="restart-line" />
<or-input v-model="text" placeholder="Some text here" beforeIcon="lock-line" afterIcon="restart-line" />

Position Text

https:// .com
html
<or-input v-model="text" placeholder="Some text here" prefix="https://" suffix=".com" />
<or-input v-model="text" placeholder="Some text here" prefix="https://" suffix=".com" />

Clear Input

html
<or-input v-model="text" placeholder="Some text here" clear />
<or-input v-model="text" placeholder="Some text here" clear />

Props

PropDefaultValuesDescription
size"sm""sm", "md", "lg"Controls size of the component
clearfalsebooleanboolean
afterIconnullremixicon classNote: remove the "ri" in class nameIcon to be placed before the input
beforeIconnullremixicon classNote: remove the "ri" in class nameIcon to be placed after the input
state'error', 'success'Gives an appropriate UI indication

Slots

NameScoped slotsDescription
beforenullContent to be placed to the left of the input
afternullContent to be placed to the right of the input
node-contentnodeCan be used to further customise the display of nodes in the menu

D2B ___ Chidi Ikeoha