Skip to main content

TextFieldProps

Home > @backstage/ui > TextFieldProps

Signature:

export interface TextFieldProps extends AriaTextFieldProps, Omit<FieldLabelProps, 'htmlFor' | 'id'> 

Extends: AriaTextFieldProps, Omit<FieldLabelProps, 'htmlFor' | 'id'>

Properties

Property

Modifiers

Type

Description

icon?

ReactNode

(Optional) An icon to render before the input

placeholder?

string

(Optional) Text to display in the input when it has no value

size?

'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>>

(Optional) The size of the text field