UNPKG

@ark-ui/vue

Version:

A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.

11 lines (10 loc) 515 B
import { PropTypes } from '@zag-js/vue'; import { ComputedRef, MaybeRef } from 'vue'; import { EmitFn, Optional } from '../../types'; import { RootEmits } from './avatar.types'; import * as avatar from '@zag-js/avatar'; export interface UseAvatarProps extends Optional<Omit<avatar.Props, 'dir' | 'getRootNode'>, 'id'> { } export interface UseAvatarReturn extends ComputedRef<avatar.Api<PropTypes>> { } export declare const useAvatar: (props?: MaybeRef<UseAvatarProps>, emit?: EmitFn<RootEmits>) => UseAvatarReturn;