UNPKG

@nuxt/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

16 lines (15 loc) 651 B
import type { InjectionKey, ComputedRef } from 'vue'; import type { FieldGroupProps } from '../components/FieldGroup.vue'; import type { GetObjectField } from '../types/utils'; export declare const fieldGroupInjectionKey: InjectionKey<ComputedRef<{ size: FieldGroupProps['size']; orientation: FieldGroupProps['orientation']; }>>; type Props<T> = { size?: GetObjectField<T, 'size'>; }; export declare function useFieldGroup<T>(props: Props<T>): { orientation: ComputedRef<"horizontal" | "vertical" | undefined>; size: ComputedRef<"md" | "xs" | "sm" | "lg" | "xl" | NonNullable<GetObjectField<T, "size">> | undefined>; }; export {};