UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

46 lines (40 loc) 843 B
import type { 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 } // types export type IconType = ElementType