UNPKG

@matt-dunn/react-wireframes

Version:

React component to annotate your components — useful for prototypes and proof of concepts

6 lines (5 loc) 555 B
import { ComponentType, useLayoutEffect } from "react"; import { WireframeAnnotation, WireframeAnnotations } from "./api"; export declare const getWireframeAnnotation: (annotations: WireframeAnnotations, Component: ComponentType<any> | undefined) => WireframeAnnotation | undefined; export declare const updateWireframeAnnotation: (annotations: WireframeAnnotations, wireFrameAnnotation: WireframeAnnotation, updatedWireframeAnnotation: WireframeAnnotation) => WireframeAnnotations; export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;