@cerberus-design/react
Version:
The Cerberus Design React component library.
40 lines (39 loc) • 910 B
text/typescript
import { ElementType } from 'react';
/**
* This module contains the types for the Cerberus React configuration.
* @module config.types
*/
export interface SystemConfig {
/**
* The icons that will be used in Cerberus React components.
*/
icons: Required<DefinedIcons>;
}
export interface DefinedIcons<T extends IconType = IconType> {
accordionIndicator: T;
avatar: T;
calendar: T;
calendarPrev: T;
calendarNext: T;
checkbox?: T;
close: T;
confirmModal: T;
decrement: T;
delete: T;
promptModal: T;
waitingFileUploader: T;
fileUploader?: T;
indeterminate?: T;
infoNotification: T;
successNotification: T;
warningNotification: T;
dangerNotification: T;
increment: T;
invalid: T;
invalidAlt: T;
redo: T;
selectArrow: T;
selectChecked: T;
toggleChecked: T;
}
export type IconType = ElementType;