@primer/react
Version:
An implementation of GitHub's Primer Design System using React
27 lines (26 loc) • 1.27 kB
TypeScript
import { ForwardRefComponent } from "../utils/polymorphic.js";
import { BannerDescription, BannerDescriptionProps, BannerPrimaryActionProps, BannerProps, BannerSecondaryActionProps, BannerTitle, BannerTitleProps, BannerVariant } from "./Banner.js";
//#region src/Banner/index.d.ts
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?: BannerVariant;
layout?: "default" | "compact";
actionsLayout?: "inline" | "stacked" | "default";
flush?: boolean;
} & import("react").RefAttributes<HTMLElement>> & {
Title: typeof BannerTitle;
Description: typeof BannerDescription;
PrimaryAction: ForwardRefComponent<"button", BannerPrimaryActionProps>;
SecondaryAction: ForwardRefComponent<"button", BannerSecondaryActionProps>;
};
//#endregion
export { Banner, type BannerPrimaryActionProps, type BannerProps, type BannerSecondaryActionProps };