UNPKG

@carbon/react

Version:

React components for the Carbon Design System

22 lines (21 loc) 685 B
/** * Copyright IBM Corp. 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ interface TextInputPropsConfig { sharedTextInputProps: Record<string, unknown>; invalid: boolean; invalidId: string; warn?: boolean; warnId?: string; hasHelper?: boolean; helperId?: string; } export declare const getTextInputProps: ({ sharedTextInputProps, invalid, invalidId, warn, warnId, hasHelper, helperId, }: TextInputPropsConfig) => { 'aria-describedby'?: string | undefined; 'data-invalid'?: boolean | undefined; 'aria-invalid'?: boolean | undefined; }; export {};