/** * Copyright IBM Corp. 2016, 2023 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export interface FluidTextInputProps { /** * Specify an optional className to be applied to the outer FluidForm wrapper */ className?: string; /** * Optionally provide the default value of the `` */ defaultValue?: string | number; /** * Specify whether the `` should be disabled */ disabled?: boolean; /** * Specify a custom `id` for the `` */ id: string; /** * Specify whether the control is currently invalid */ invalid?: boolean; /** * Provide the text that is displayed when the control is in an invalid state */ invalidText?: React.ReactNode; /** * Specify whether the control is a password input */ isPassword?: boolean; /** * Max character count allowed for the textInput. This is needed in order for enableCounter to display */ maxCount?: number; /** * Specify whether to display the character counter */ enableCounter?: boolean; /** * Provide the text that will be read by a screen reader when visiting this * control */ labelText: React.ReactNode; /** * Optionally provide an `onChange` handler that is called whenever `` * is updated */ onChange?: (event: React.ChangeEvent) => void; /** * Optionally provide an `onClick` handler that is called whenever the * `` is clicked */ onClick?: (event: React.MouseEvent) => void; /** * Specify the placeholder attribute for the `` */ placeholder?: string; /** * Specify the value of the `` */ value?: string | number; /** * Specify whether the control is currently in warning state */ warn?: boolean; /** * Provide the text that is displayed when the control is in warning state */ warnText?: React.ReactNode; /** * Whether or not the component is readonly */ readOnly?: boolean; } declare const FluidTextInput: React.ForwardRefExoticComponent>; export default FluidTextInput;