@wordpress/components
Version:
UI components for WordPress.
22 lines • 889 B
TypeScript
import type { ForwardedRef } from 'react';
import type { WordPressComponentProps } from '../context';
import type { ScrollableProps } from './types';
export declare function UnconnectedScrollable(props: WordPressComponentProps<ScrollableProps, 'div'>, forwardedRef: ForwardedRef<any>): import("react").JSX.Element;
/**
* `Scrollable` is a layout component that content in a scrollable container.
*
* ```jsx
* import { __experimentalScrollable as Scrollable } from `@wordpress/components`;
*
* function Example() {
* return (
* <Scrollable style={ { maxHeight: 200 } }>
* <div style={ { height: 500 } }>...</div>
* </Scrollable>
* );
* }
* ```
*/
export declare const Scrollable: import("../context").WordPressComponent<"div", ScrollableProps & Pick<import("react").RefAttributes<any>, "ref">, true>;
export default Scrollable;
//# sourceMappingURL=component.d.ts.map