@ark-ui/react
Version:
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
10 lines (9 loc) • 445 B
TypeScript
import { PropTypes } from '@zag-js/react';
import { Optional } from '../../types';
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 drawer.Api<PropTypes> {
}
export declare const useDrawer: (props?: UseDrawerProps) => UseDrawerReturn;