UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

30 lines 1.1 kB
/** * Credit where credit is due... * I created this component with the VERY helpful Bing Chat and some iterations. * Great Help and shout out to Bing Chat! */ import * as React from 'react'; import { ITextValidationType } from './ITextValidationType'; export declare function countLineFeeds(str: string): number; export declare function formatStringLike(str: string, format: ITextValidationType): string; export type ITextBackground = 'transparent' | 'yellow' | 'red'; export interface IFPSTextInput { title?: string; titleStyles?: React.CSSProperties; placeholder?: string; onTextChange?: (text: string) => void; defaultValue?: string; reactCSS?: React.CSSProperties; className?: string; description?: string; validationType?: ITextValidationType; multiLine?: boolean; } /** * Your typical text input but with some common validations like JSON, XML, HTML, SPO (urls) * @param props * @returns */ declare const FPSTextInput: React.FC<IFPSTextInput>; export default FPSTextInput; //# sourceMappingURL=FPSTextInput.d.ts.map