Skip to content

v-readonly

Dynamically sets the readonly attribute. When used on a <label>, targets its child <input>.

Usage

vue
<input v-readonly="!isEditing" />

Demo