UNPKG

@volverjs/ui-vue

Version:

@volverjs/ui-vue is a lightweight Vue 3 component library to accompany @volverjs/style.

10 lines (9 loc) 461 B
import type { InjectionKey } from 'vue'; /** * Injects a group state */ export declare function useGroupStateInject<GroupStateType>(groupKey: InjectionKey<GroupStateType>): { group: GroupStateType | undefined; isInGroup: globalThis.ComputedRef<boolean>; getGroupOrLocalRef: <TProps extends object, TName extends keyof GroupStateType>(propName: TName, props: TProps, emit?: (event: string, ...args: unknown[]) => void) => GroupStateType[TName]; };