UNPKG

bootstrap-vue-next

Version:

Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development

16 lines (15 loc) 759 B
import { Ref } from 'vue'; import { ValidationState } from '../types/CommonTypes'; /** * Provides formGroupKey for descendant form controls. Each provider has its own isolated * label-target registry: BFormGroup uses the resulting `singleLabelTargetId` to drive its * label/legend rendering. Intermediate components (e.g. BFormFloatingLabel) call this with * passed-through state/disabled, acting as a boundary — their registry exists but is unused, * so descendant claims never reach an outer BFormGroup. */ export declare const useProvideFormGroupData: ({ state, disabled, }: { state: Readonly<Ref<ValidationState | undefined>>; disabled: Readonly<Ref<boolean>>; }) => { singleLabelTargetId: import('vue').ComputedRef<string | null>; };