package.dist.components.presence.use-presence.d.cts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react Show documentation
Show all versions of react Show documentation
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