@primer/react
Version:
An implementation of GitHub's Primer Design System using React
25 lines • 1.36 kB
TypeScript
import { BannerTitle, BannerDescription } from './Banner';
import type { BannerProps, BannerTitleProps, BannerDescriptionProps, BannerPrimaryActionProps, BannerSecondaryActionProps } from './Banner';
export declare const Banner: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
'aria-label'?: string;
className?: string;
description?: React.ReactNode;
hideTitle?: boolean;
icon?: React.ReactNode;
leadingVisual?: React.ReactNode;
onDismiss?: () => void;
primaryAction?: React.ReactNode;
secondaryAction?: React.ReactNode;
title?: React.ReactNode;
variant?: import("./Banner").BannerVariant;
layout?: "default" | "compact";
actionsLayout?: "inline" | "stacked" | "default";
flush?: boolean;
} & import("react").RefAttributes<HTMLElement>> & {
Title: typeof BannerTitle;
Description: typeof BannerDescription;
PrimaryAction: import("../utils/polymorphic").ForwardRefComponent<"button", BannerPrimaryActionProps>;
SecondaryAction: import("../utils/polymorphic").ForwardRefComponent<"button", BannerSecondaryActionProps>;
};
export type { BannerProps, BannerTitleProps, BannerDescriptionProps, BannerPrimaryActionProps, BannerSecondaryActionProps, };
//# sourceMappingURL=index.d.ts.map