UNPKG

@glomex/integration-react

Version:

React component to integrate the glomex player

29 lines (28 loc) 1.14 kB
import { type GlomexMediaItemWithOverrides, type IntegrationElement, type IntegrationProperties, type MediaItem } from '@glomex/integration-web-component'; import { type CSSProperties, type DetailedHTMLProps, type HTMLAttributes } from 'react'; declare global { namespace JSX { interface IntrinsicElements { 'glomex-integration': DetailedHTMLProps<HTMLAttributes<IntegrationElement> & { index?: number; placement?: string; hidden?: boolean; style?: CSSProperties; }, IntegrationElement>; } } } /** * React component for the integration. * * @see {@link IntegrationElementEventMap} for all available events. */ export declare const Integration: import("react").ForwardRefExoticComponent<IntegrationProperties & { id?: string; mediaItems?: (string | GlomexMediaItemWithOverrides | MediaItem)[]; preventLoadIntegration?: boolean; configs?: Record<string, unknown>; style?: CSSProperties; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<IntegrationElement>>;