UNPKG

@mikezimm/npmfunctions

Version:
26 lines (25 loc) 1.13 kB
/// <reference types="react" /> import { IMyTextElementTypes } from './IElements'; /** * * @param title Title string if required, can contain <above> or <below> anywhere to target location. * @param styles Styles should be this limited structure: { color: 'htmlColor', height: 2 } */ export declare function MyDivider(title: string, styles: any): JSX.Element; export declare function MyText(type: IMyTextElementTypes, title: string, styles?: any): JSX.Element | null; /** * * @param title * @param src * @param styles usable styles * styles = { * padding: 20, // padding is around entire image * ImageFit: 0 | 1 | 2 | 3 | 4 | 5, // These would be the ImageFit types * ImageCoverStyle: 0 | 1, // These would be the ImageCoverStyle types (landscape and portrait) * height: 20, * width: 20, * * } */ export declare function MyImage(title: string, src: string, styles?: any, href?: any): JSX.Element; export declare function convertTextToListItems(value: string, delim: string, leftPad: number, type: 'ul' | 'ol', otherSettings?: null): any;