UNPKG

@primer/react-brand

Version:

Primer Brand is a GitHub's design system for creating React-based marketing websites and digital experiences.

41 lines (40 loc) 1.22 kB
import React, { PropsWithChildren } from 'react'; import type { BaseProps } from '../../component-helpers'; import type { HeroMediaPositions } from '../HeroContext'; type HeroVideoBaseProps = { position?: HeroMediaPositions; enableBorder?: boolean; 'data-testid'?: string; } & PropsWithChildren<BaseProps<HTMLDivElement>>; type PosterProps = { poster?: never; posterAltText?: never; posterTitle?: never; } | { poster: string; posterAltText: string; posterTitle: string; }; export type HeroVideoProps = HeroVideoBaseProps & PosterProps; export declare const HeroVideo: React.ForwardRefExoticComponent<(Omit<{ position?: HeroMediaPositions; enableBorder?: boolean; 'data-testid'?: string; } & BaseProps<HTMLDivElement> & { children?: React.ReactNode | undefined; } & { poster?: never; posterAltText?: never; posterTitle?: never; }, "ref"> | Omit<{ position?: HeroMediaPositions; enableBorder?: boolean; 'data-testid'?: string; } & BaseProps<HTMLDivElement> & { children?: React.ReactNode | undefined; } & { poster: string; posterAltText: string; posterTitle: string; }, "ref">) & React.RefAttributes<HTMLDivElement>>; export {};