@code-editor/preview-pip
Version:
A Resizable Picture-in-Picture component.
39 lines (38 loc) • 951 B
TypeScript
import React from "react";
interface DraggingBoxStyle {
outline: string;
outlineColor: string;
outlineStyle: string;
outlineWidth: number | string;
}
declare function PIP({ children, zIndex, boxShadow, borderRadius, hoverCursor, draggingCursor, backgroundColor, draggingStyle, }: {
children: React.ReactNode;
/**
* @default 100
*/
zIndex?: number;
/**
* boxshadow css as string
* @default "1px 3px 3px 0 rgb(0 0 0 / 20%), 1px 3px 15px 2px rgb(0 0 0 / 20%)"
*/
boxShadow?: string;
/**
* px in number or other unit (e.g. rem) as string
* @default "0.3rem"
*/
borderRadius?: string | number;
/**
* @default grab
*/
hoverCursor?: string;
/**
* @default grabbing
*/
draggingCursor?: string;
draggingStyle?: DraggingBoxStyle;
/**
* @default #242d36
*/
backgroundColor?: string;
}): JSX.Element;
export default PIP;