UNPKG

@open-tender/ui

Version:

A component library for use with the Open Tender web app

18 lines (17 loc) 557 B
import { Styles } from './styles'; export type ElementIcon = 'after' | 'before' | 'hide'; export type ElementAs = 'div' | 'main' | 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hScroll' | 'vScroll'; export interface ElementProps { alt?: string; as?: ElementAs; icon?: ElementIcon; text?: string; src?: string; } export interface ElementConfig { classes: string; props: ElementProps; style?: Styles; } export type ScreenConfig = Record<string, ElementConfig>; export type AppConfig = Record<string, ScreenConfig>;