@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
19 lines (18 loc) • 836 B
TypeScript
import * as React from 'react';
import { BaseUIComponentProps } from '../../utils/types.js';
import { useCollapsibleRoot } from './useCollapsibleRoot.js';
/**
* Groups all parts of the collapsible.
* Renders a `<div>` element.
*
* Documentation: [Base UI Collapsible](https://base-ui.com/react/components/collapsible)
*/
declare const CollapsibleRoot: React.ForwardRefExoticComponent<CollapsibleRoot.Props & React.RefAttributes<HTMLDivElement>>;
export { CollapsibleRoot };
export declare namespace CollapsibleRoot {
interface State extends Pick<useCollapsibleRoot.ReturnValue, 'open' | 'disabled' | 'transitionStatus'> {
}
interface Props extends Partial<useCollapsibleRoot.Parameters>, Omit<BaseUIComponentProps<'div', State>, 'render'> {
render?: BaseUIComponentProps<'div', State>['render'] | null;
}
}