@workday/canvas-kit-react-banner
Version:
Common Canvas banner component for React
20 lines • 670 B
TypeScript
import * as React from 'react';
import { ErrorType, Themeable } from '@workday/canvas-kit-react-common';
export declare enum BannerVariant {
Full = 0,
Sticky = 1
}
export interface BannerProps extends Themeable, React.ButtonHTMLAttributes<HTMLButtonElement> {
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
label?: React.ReactNode;
variant?: BannerVariant;
error?: ErrorType;
actionText?: string;
}
declare class Banner extends React.Component<BannerProps> {
static Variant: typeof BannerVariant;
static ErrorType: typeof ErrorType;
render(): JSX.Element;
}
export default Banner;
//# sourceMappingURL=Banner.d.ts.map