@glomex/integration-react
Version:
React component to integrate the glomex player
33 lines (32 loc) • 1.29 kB
TypeScript
import { type GlomexMediaItemWithOverrides, type IntegrationElement, type IntegrationProperties, type MediaItem } from '@glomex/integration-web-component';
import { type CSSProperties } from 'react';
declare module 'react/jsx-runtime' {
namespace JSX {
interface IntrinsicElements {
'glomex-integration': Omit<JSX.IntrinsicElements['div'], 'ref' | 'children'> & {
ref?: React.Ref<IntegrationElement | null>;
children?: React.ReactNode;
index?: number;
placement?: string;
'integration-id'?: string;
'playlist-id'?: string;
'top-level-iframe'?: boolean;
hidden?: boolean;
};
}
}
}
/**
* 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>>;