Components

Tiptap Input ​

TiptapInput provides a compact inline rich-text field. It is useful for subjects, placeholders, formulas, and other short authoring surfaces.

Plain Input ​

Use TiptapInput as a compact rich-text capable inline authoring field.

States ​

Use invalid, disabled, and read-only states when the input participates in form validation or locked settings.

Variable Tag Indicators ​

Variable tags display the applied transform as a badge and an orange corner when a default value is set. Pass variableTransformerRegistry, grouped by value type, to display transform names. Unknown transforms display their saved ID.

vue
<TiptapInput
    :variableTransformerRegistry="{
        string: [{ id: 'kebab', label: 'Kebab Case' }],
    }"
/>

API ​

Props ​

NameDescription
customErrorCustom validation message; also settable via setCustomValidity().
Type string | null
Default null
defaultValueType string | null
disabledDisables the control and excludes it from constraint validation.
Type boolean
Default false
fitCellFlush + fill parent cell (editable tables).
Type boolean
Default false
invalidType boolean
Default false
isInvalidAlias for invalid.
nameName submitted with form data.
Type string | null
Default null
readonlyType boolean
Default false
readOnlyAlias for readonly.
requiredMarks the control as required for form submission.
Type boolean
Default false
variableCategoriesVariable options used to resolve chip labels when hydrating from {token} strings. Without this, saved field tokens fall back to UID title-casing after reload.
Type PkTiptapVariableCategories
Default {}
variableTagConfigureFormie / React configure bridge — called when a chip is activated for editing. Prefer this over listening for pk-variable-tag-configure from React.
Type ((detail: import('./variable-tag-node-view.js').PkVariableTagConfigureDetail) => void) | null
Default null
variableTransformerRegistryTransform names displayed as badges on configured variable tags.
Type PkVariableTransformerRegistry
Default {}

Methods ​

NameDescription
checkValidity()Runs constraint validation without showing the browser UI.
reportValidity()Runs constraint validation and shows the browser UI when invalid.
resetValidity()Clears custom errors and re-syncs validity state.
setCustomValidity(message: string)Sets or clears a custom validation message.

Events ​

NameDescription
@change—
@input—
@pk-change—

Custom States ​

NameDescriptionCSS selector
disabledThe control is disabled.:state(disabled)
invalidThe control currently fails constraint validation.:state(invalid)
optionalThe control is not required.:state(optional)
requiredThe control is required.:state(required)
user-invalidInvalid after the user has interacted with the control.:state(user-invalid)
user-validValid after the user has interacted with the control.:state(user-valid)
validThe control currently passes constraint validation.:state(valid)
Edit this page
Last updated: Oct 21, 2026, 10:24 AM