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

package.dist.components.collapsible.use-collapsible.d.cts Maven / Gradle / Ivy

import { PropTypes } from '@zag-js/react';
import { Optional } from '../../types';
import { RenderStrategyProps } from '../../utils/render-strategy';
import * as collapsible from '@zag-js/collapsible';
export interface UseCollapsibleProps extends Optional, 'id'>, RenderStrategyProps {
    /**
     * The initial open state of the collapsible when it is first rendered.
     * Use when you do not need to control its open state.
     */
    defaultOpen?: collapsible.Context['open'];
}
export interface UseCollapsibleReturn extends collapsible.Api {
    /**
     * Whether the content is unmounted
     */
    isUnmounted?: boolean;
}
export declare const useCollapsible: (props?: UseCollapsibleProps) => UseCollapsibleReturn;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy