UNPKG

@withjoy/joykit

Version:

UI Component Library for Joy web

40 lines (39 loc) 1.11 kB
import React from 'react'; interface TextFieldProps { /** * If true, the label will be displayed in error state. */ error?: boolean; /** * The helper text content. */ helperText?: React.ReactNode; /** * The id of the `input` element. * Use this property to make `label` and `helperText` accessible for screen readers. */ id?: string; /** * If `true`, a textarea element will be rendered instead of an input. */ multiline?: boolean; onChange?: React.ChangeEventHandler; /** * The short hint displayed in the input before the user enters a value. */ placeholder?: string; /** * If true, the label will indicate that the input is required. */ required?: boolean; /** * Number of rows to display when multiline option is set to true. */ rowsMin?: number; /** * Maximum number of rows to display when multiline option is set to true. */ rowsMax?: number; } export declare const TextField: React.SFC<TextFieldProps>; export {};