EVENT_PROP

const
Composables & Internals

Generic factory that returns a Vue PropType descriptor accepting either a Function or an Array of functions, typed as TEventProp<T>. Used on components that need to expose a callback prop (e.g. onClick, onInput).

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamBtn

  • OrigamInput

Usage

Examples

Ready-to-paste code snippets using this constant.

Declaring an event prop on a component

typescript