UNPKG

hongluan-ui

Version:
20 lines (19 loc) 840 B
import type { FormItemContext } from 'hongluan-ui/es/tokens'; import type { ComputedRef, Ref } from 'vue'; export declare const useFormItem: () => { form: import("hongluan-ui/es/tokens").FormContext; formItem: FormItemContext; }; export declare type IUseFormItemInputCommonProps = { id?: string; label?: string | number | boolean | Record<string, any>; ariaLabel?: string | number | boolean | Record<string, any>; }; export declare const useFormItemInputId: (props: Partial<IUseFormItemInputCommonProps>, { formItemContext, disableIdGeneration, disableIdManagement, }: { formItemContext?: FormItemContext; disableIdGeneration?: ComputedRef<boolean> | Ref<boolean>; disableIdManagement?: ComputedRef<boolean> | Ref<boolean>; }) => { isLabeledByFormItem: ComputedRef<boolean>; inputId: Ref<string>; };