Skip to content
HomePagesHomePages template kit

ValueBinding

What every value primitive accepts: a top-level slot binding OR a row-field binding.

What every value primitive accepts: a top-level slot binding OR a row-field binding. The primitive reads def, value, and the identity (id vs field), deriving the matching marker attribute (data-slot-id vs data-slot-field) itself.

Import from @homepages/template-kit.

export type ValueBinding<D> = Pick<SlotBinding<D>, "id" | "def" | "value"> | Pick<FieldBinding<D>, "field" | "def" | "value">;