UNPKG

@nuxt/ui

Version:

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

16 lines (15 loc) 541 B
import type { InjectionKey, ComputedRef } from 'vue'; import type { ButtonGroupProps } from '../components/ButtonGroup.vue'; import type { GetObjectField } from '../types/utils'; export declare const buttonGroupInjectionKey: InjectionKey<ComputedRef<{ size: ButtonGroupProps['size']; orientation: ButtonGroupProps['orientation']; }>>; type Props<T> = { size?: GetObjectField<T, 'size'>; }; export declare function useButtonGroup<T>(props: Props<T>): { orientation: ComputedRef<any>; size: ComputedRef<any>; }; export {};