UNPKG

@ark-ui/vue

Version:

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

12 lines (11 loc) 595 B
import { PropTypes } from '@zag-js/vue'; import { ComputedRef, MaybeRef } from 'vue'; import { EmitFn, Optional } from '../../types.js'; import { RootEmits } from './drawer.types.js'; import * as drawer from '@zag-js/drawer'; export interface UseDrawerProps extends Optional<Omit<drawer.Props, 'dir' | 'getRootNode' | 'defaultSnapPoint'>, 'id'> { defaultSnapPoint?: drawer.SnapPoint | undefined; } export interface UseDrawerReturn extends ComputedRef<drawer.Api<PropTypes>> { } export declare const useDrawer: (props?: MaybeRef<UseDrawerProps>, emit?: EmitFn<RootEmits>) => UseDrawerReturn;