UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

17 lines 680 B
import { InputProps } from '@mui/material'; import { ReactNode } from 'react'; export type TextFieldWithWordLimitProps = InputProps & { label?: ReactNode; helperText?: ReactNode; minWords?: number; maxWords?: number; }; export declare function getWordCount(s: string): number; /** * Wrapper around MUI input components that displays the word count of the input. The appearance of the word count changes * based on the validity of the current input. * @param props * @constructor */ export default function TextFieldWithWordLimit(props: TextFieldWithWordLimitProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=TextFieldWithWordLimit.d.ts.map