UNPKG

@wordpress/components

Version:
24 lines • 726 B
import type { ScrollableProps } from './types'; /** * `Scrollable` is a layout component that puts content in a scrollable * container. * * This component is deprecated. Write your own CSS instead. * * @deprecated * * ```jsx * import { __experimentalScrollable as Scrollable } from '@wordpress/components'; * * function Example() { * return ( * <Scrollable style={ { maxHeight: 200 } }> * <div style={ { height: 500 } }>...</div> * </Scrollable> * ); * } * ``` */ declare const DeprecatedScrollable: import("../context").WordPressComponent<"div", ScrollableProps & Pick<import("react").RefAttributes<any>, "ref">, true>; export default DeprecatedScrollable; //# sourceMappingURL=deprecated.d.ts.map