Type Alias: RCustomFieldInputSlotArg
ts
type RCustomFieldInputSlotArg = Omit<VFieldSlot, "props" | "controlRef"> & {
bus: RCustomFieldBus;
props: RCustomFieldDefaultSlotProps;
};Complete argument object passed to the default slot of RCustomField.
Extends VFieldSlot with custom field-specific properties, providing everything custom implementations need for sophisticated field behavior. Includes props, event bus, state refs, handlers, and utilities.
Key properties:
props: Input props for binding to custom componentsbus: Typed event emitter for wrapper communicationisActive,isFocused: Reactive state computed refscontrolRef: Reference to the VField componentfocus,blur: Focus management methodsonIntersect: Intersection observer callback
Type Declaration
| Name | Type |
|---|---|
bus | RCustomFieldBus |
props | RCustomFieldDefaultSlotProps |
Example
typescript
// Complete slot usage
<template #default="{ props, bus, isActive, focus, blur, onIntersect }">
<CustomInput
v-bind="props"
:class="{ active: isActive }"
@focus="focus"
@blur="blur"
@custom-event="() => bus.emit('focus')"
/>
</template>