UNPKG

@bitrix24/b24ui-nuxt

Version:

Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE

18 lines (17 loc) 727 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']; noSplit: ButtonGroupProps['noSplit']; }>>; type Props<T> = { size?: GetObjectField<T, 'size'>; }; export declare function useButtonGroup<T>(props: Props<T>): { orientation: ComputedRef<"horizontal" | "vertical" | undefined>; size: ComputedRef<"md" | "xs" | "sm" | "lg" | NonNullable<GetObjectField<T, "size">> | undefined>; noSplit: ComputedRef<boolean>; }; export {};