import type { BaseInputProps } from '@sinoui/core/BaseInput'; import React from 'react'; /** * */ export interface TextInputProps extends BaseInputProps { /** * 标签内容 */ label?: string; /** * 错误状态 */ error?: boolean; /** * 错误信息 */ errorText?: string; /** * input的渲染形式 */ variant?: 'standard' | 'filled' | 'outlined'; /** * 帮助文字 */ helperText?: string; /** * 密集模式 */ dense?: boolean; /** * 基础的class类名。默认为 `sinoui-text-input`。 */ baseClassName?: string; /** * 如果设置为`true`,则输入框的标签一直处于收缩悬浮状态。默认为`false`。 */ shrink?: boolean; /** * 直接控制输入框的标签悬浮状态。 */ forceShrink?: boolean; /** * 给根元素指定css样式 */ style?: React.CSSProperties; /** * 给根元素指定属性 */ wrapperProps?: Record; /** * 将输入框作为表单控件使用 */ field?: boolean; /** * outline模式下是否显示方角 */ square?: boolean; /** * */ ref?: React.Ref; } /** * 文本输入框组件。符合 Material Design Text Field 规范。 */ declare const TextInput: React.FC; export default TextInput;