UNPKG

tinacms

Version:

[![GitHub license](https://img.shields.io/github/license/tinacms/tinacms?color=blue)](https://github.com/tinacms/tinacms/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/tinacms.svg?style=flat)](https://www.npmjs.com/package/tinacms) [![Bui

40 lines (39 loc) 2.21 kB
import React from 'react'; export declare const mediaResizeHandleVariants: (props?: { direction?: "left" | "right"; } & import("class-variance-authority/dist/types").ClassProp) => string; export declare const ResizeHandle: React.ForwardRefExoticComponent<Omit<Omit<{ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined; asChild?: boolean | undefined; className?: string | undefined; options?: import("@udecode/plate-resizable").ResizeHandleOptions | undefined; setProps?: ((hookProps: { onMouseDown: React.MouseEventHandler<Element>; onMouseOut: () => void; onMouseOver: () => void; onTouchEnd: () => void; onTouchMove: () => void; onTouchStart: React.TouchEventHandler<Element>; }) => Omit<React.HTMLAttributes<HTMLDivElement>, "onResize">) | undefined; state?: { direction: import("@udecode/plate-resizable").ResizeDirection; initialPosition: number; initialSize: number; isHorizontal: boolean; isResizing: boolean; onHover: (() => void) | undefined; onHoverEnd: (() => void) | undefined; onMouseDown: React.MouseEventHandler<Element> | undefined; onResize: (event: import("@udecode/plate-resizable").ResizeEvent) => void; onTouchStart: React.TouchEventHandler<Element> | undefined; setInitialPosition: React.Dispatch<React.SetStateAction<number>>; setInitialSize: React.Dispatch<React.SetStateAction<number>>; setIsResizing: React.Dispatch<React.SetStateAction<boolean>>; } | undefined; style?: React.CSSProperties | undefined; } & Omit<React.HTMLAttributes<HTMLDivElement>, "onResize"> & React.RefAttributes<any>, "ref">, never> & React.RefAttributes<any>>; export declare const Resizable: React.ForwardRefExoticComponent<Omit<{ options: import("@udecode/plate-resizable").ResizableOptions; } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: { align?: "center" | "left" | "right"; } & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLDivElement>>;