UNPKG

@ark-ui/react

Version:

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

14 lines (13 loc) 685 B
import { Assign } from '../../types'; import { ForwardRefExoticComponent, RefAttributes } from 'react'; export interface FrameBaseProps { /** Additional content to be inserted into the frame's <head> */ head?: React.ReactNode | undefined; /** Callback function to be executed when the frame is mounted */ onMount?: (() => void) | undefined; /** Callback function to be executed when the frame is unmounted */ onUnmount?: (() => void) | undefined; } export interface FrameProps extends Assign<React.IframeHTMLAttributes<HTMLIFrameElement>, FrameBaseProps> { } export declare const Frame: ForwardRefExoticComponent<FrameProps & RefAttributes<HTMLIFrameElement>>;