@atlaskit/side-navigation
Version:
A highly composable side navigation component that supports nested views.
21 lines (20 loc) • 563 B
TypeScript
import React, { type Ref } from 'react';
import type { Direction } from '@atlaskit/motion/entering/types';
interface ChildrenAsFunctionProps {
'data-enter-from': string;
'data-exit-to': string;
'data-testid'?: string;
className?: string;
ref: Ref<any>;
}
interface NestingMotionProps {
enterFrom: Direction;
exitTo: Direction;
children: (props: ChildrenAsFunctionProps) => React.ReactNode;
testId?: string;
}
/**
* @internal
*/
export declare const NestingMotion: (props: NestingMotionProps) => React.JSX.Element;
export {};