Skip to content
On this page

Input Password

Base password-input form.

Usage

Simple Usage

preview
vue
<template>
  <p-input-password />
</template>

Sizing

preview
vue
<template>
  <p-input-password size="xs" />
  <p-input-password size="sm" />
  <p-input-password size="md" />
  <p-input-password size="lg" />
</template>

Disabled State

preview
vue
<template>
  <p-input-password disabled />
</template>

Readonly State

preview
vue
<template>
  <p-input-password readonly />
</template>

Error State

preview
vue
<template>
  <p-input-password error />
</template>

Clearable

preview
vue
<template>
  <p-input-password clearable />
</template>

Binding v-model

Like other input, input value can be binding with v-model.

preview

result:

-
vue
<template>
  <p-input-password v-model="result" />
</template>

API

Props

PropsTypeDefaultDescription
sizeStringmdInput size variant, valid value: xs, sm, md, lg
placeholderString-Input placeholder
disabledBooleanfalseDisabled state
readonlyBooleanfalseReadonly state
errorBooleanfalseError state
clearableBooleanfalseEnable clear button
modelValueString-v-model value

Slots

NameDescription
There no slots here

Events

NameArgumentsDescription
changeStringEvent when value changed
clear-Event when clear button clicked

See Also

Released under the MIT License.