Browse documentation

v-if

Concept. Conditionally includes a vnode.

Table of contents

Category

Concept

Public signature

ts
JSX directive: <element v-if={condition}>

Runtime behavior

v-if includes the vnode only when its value is truthy. A false result skips later directives on that vnode for the same patch.