import { createElement } from "react"; /** * External dependencies */ /** * Internal dependencies */ import { contextConnect } from '../context'; import { View } from '../view'; import { useScrollable } from './hook'; function UnconnectedScrollable(props, forwardedRef) { const scrollableProps = useScrollable(props); return createElement(View, { ...scrollableProps, ref: forwardedRef }); } /** * `Scrollable` is a layout component that content in a scrollable container. * * ```jsx * import { __experimentalScrollable as Scrollable } from `@wordpress/components`; * * function Example() { * return ( * *
...
*
* ); * } * ``` */ export const Scrollable = contextConnect(UnconnectedScrollable, 'Scrollable'); export default Scrollable; //# sourceMappingURL=component.js.map