UNPKG

@primer/react-brand

Version:

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

29 lines (28 loc) 918 B
import React from 'react'; import { ButtonBaseProps } from '../../Button'; import type { BaseProps } from '../../component-helpers'; type RestrictedPolymorphism = (BaseProps<HTMLAnchorElement> & { as?: 'a'; }) | (BaseProps<HTMLButtonElement> & { as?: 'button'; }); export type HeroSecondaryActionProps = { as?: 'a' | 'button'; href: string; } & ButtonBaseProps & RestrictedPolymorphism; export declare const HeroSecondaryAction: React.ForwardRefExoticComponent<(Omit<{ as?: "a" | "button"; href: string; } & ButtonBaseProps & BaseProps<HTMLAnchorElement> & { as?: "a"; } & { children?: React.ReactNode | undefined; }, "ref"> | Omit<{ as?: "a" | "button"; href: string; } & ButtonBaseProps & BaseProps<HTMLButtonElement> & { as?: "button"; } & { children?: React.ReactNode | undefined; }, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>; export {};