All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.components.presence.use-presence.d.ts Maven / Gradle / Ivy

Go to download

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

The newest version!
import { Optional } from '../../types';
import { RenderStrategyProps } from '../../utils/render-strategy';
import * as presence from '@zag-js/presence';
export interface UsePresenceProps extends Optional, RenderStrategyProps {
}
export type UsePresenceReturn = ReturnType;
export declare const usePresence: (props: UsePresenceProps) => {
    ref: (node: HTMLElement | null) => void;
    getPresenceProps: () => {
        'data-state': string;
        hidden: boolean;
    };
    present: boolean;
    unmounted: boolean | undefined;
};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy