Skip to content

Text Inputs

Overview

Text Inputs allow users to enter text-based data, typically within forms. This library provides two types of text inputs: Filled and Outlined. Both types offer various features such as customizable icons, error handling, and styling options.

  • Filled Input
filled text input
filled text input animation
  • Outlined Input
outlined text input
outlined text input animation

Properties

Both Filled and Outlined inputs accept the following properties:

namedescriptiontypedefault
labelRequired. The label text displayed for the input.string-
disabledWhether the input is disabled.boolean-
errorTextError message to display when input is invalid.string-
suportingTextText providing additional information or help.string-
leadingIconComponent to render before the input field.React.FC-
trailingIconComponent to render after the input field.React.FC-
leadingIconPropsProps for the leading icon component.T-
trailingIconPropsProps for the trailing icon component.T-
leadingComponentCustom component rendered before the input.ReactNode-
trailingComponentCustom component rendered after the input.ReactNode-
labelStyleCustom style for the label text.ViewStyle-
supportingTextStyleCustom style for the supporting text.TextStyle-
innerContainerStyleCustom style for the inner container.ViewStyle-
outerContainerStyleCustom style for the outer container.ViewStyle-
onOuterContainerLayoutCustom style for the active indicator (focus).(e: LayoutChangeEvent) => void-

Additional Properties for Filled Input:

namedescriptiontypedefault
activeIndicatorStyleCustom style for the active indicator.ViewStyle-

Additional Properties for Outlined Input:

namedescriptiontypedefault
labelSlotStyleCustom style for the label slot. If using a background color different from theme.surfaceContainer.backgroundLow, you will need to pass that color as the background for the label slot as well.ViewStyle-