and-design-components-library
Version:
Library of reusable React components based on AND Digital design system.
25 lines (24 loc) • 502 B
TypeScript
export interface ErrorProps {
/**
* Primary error message
*/
primaryMessage: string;
/**
* Secondary error message
*/
secondaryMessage?: string;
/**
* Icon used for the error
* @default 'error'
*/
icon?: string;
/**
* Accepts a subset of AND Digital brand colors.
* @default 'colors.greyTextDarkBg'
*/
iconColor?: string;
/**
* If the error is centered
*/
centered?: boolean;
}