UNPKG

@web-package/react-widgets

Version:

This is package that provides templates that can significantly reduce CSS development works in a react development environment.

13 lines (12 loc) 479 B
import { ReactNode } from "react"; import { MeasuredSize } from "../types"; /** * Signature for the callback function of a measured size about width, height * for target element about `Layout` widget. */ export type LayoutCallback = (size: MeasuredSize, element: HTMLElement) => void; export declare function Layout({ before, behind, children }: { before?: LayoutCallback; behind?: LayoutCallback; children: ReactNode; }): import("react/jsx-runtime").JSX.Element;