Skip to content

Documentation / @ripl/vue / BOOLEAN_PROP

Variable: BOOLEAN_PROP ​

const BOOLEAN_PROP: object

Defined in: adapters/vue/src/core/props.ts:22

A boolean prop. default: undefined is load-bearing: without an explicit default Vue casts an absent boolean prop to false, which would override Ripl's own defaults rather than leave them alone. Declaring the default keeps valueless-attribute casting (<ripl-rect clip>) while letting an omitted prop stay omitted.

Type Declaration ​

default ​

readonly default: undefined = undefined

Absent means unset, so an omitted prop leaves the Ripl default alone.

type ​

readonly type: BooleanConstructor = Boolean

Vue's runtime type check for a boolean.