@base-ui/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.
20 lines • 813 B
TypeScript
import * as React from 'react';
import { BaseUIComponentProps } from "../../utils/types.js";
/**
* A wrapper element intended to contain your app's main UI.
* Applies `data-active` when any drawer within the nearest <Drawer.Provider> is open.
*
* Documentation: [Base UI Drawer](https://base-ui.com/react/components/drawer)
*/
export declare const DrawerIndent: React.ForwardRefExoticComponent<Omit<DrawerIndentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
export interface DrawerIndentState {
/**
* Whether any drawer within the nearest <Drawer.Provider> is open.
*/
active: boolean;
}
export interface DrawerIndentProps extends BaseUIComponentProps<'div', DrawerIndent.State> {}
export declare namespace DrawerIndent {
type State = DrawerIndentState;
type Props = DrawerIndentProps;
}