.finally(React)

English
Copyright © 2023-currentdotfinally, LLC

Text Input

Write the truth

The Text Input component can be used by importing { TextInput } from "finallyreact"

Input values are emitted through onBlur and onChange events (or the generic onEvent prop, which combines both). Values input and output will always be strings.

Example

Event:
Value:
Example

Outline

Event:
Value:
Outline

Rounded

Event:
Value:
Rounded

Clear Icon

Event:
Value:
Event:
Value:
Clear Icon

Placeholder - Floating

Float
Event:
Value:
Float
Event:
Value:
Placeholder - Floating

Placeholder - Not Floating

No Float
Event:
Value:
No Float
Event:
Value:
Placeholder - Not Floating

Color

Use any FinallyReact color or valid hex value

Event:
Value:
Event:
Value:
Event:
Value:
Color

Size

small
Event:
Value:
medium
Event:
Value:
large
Event:
Value:
small
Event:
Value:
medium
Event:
Value:
large
Event:
Value:
Size

Mask

Use '1' to indicate user input

Mask: 11/11/1111
Event:
Value:
Mask: (111) 111-1111
Event:
Value:
Mask: $111,111.11
Event:
Value:
Mask: $$111-111##
Event:
Value:
Mask

Password

Use type = 'password'

Password
Event:
Value:
Password

Disabled

Disabled
Placeholder
Disabled

Simple

Event:
Value:
Simple

Left and Right Icons

🦙
Placeholder
Placeholder
🍏
Left and Right Icons

Left and Right Labels

Left Label
Placeholder
Placeholder
Right Label
Left and Right Labels

Textarea

Textarea

Custom Clear Icon

Custom Clear Icon

TextInput Props

Prop NameProp TypeDescription
clearPropsHTMLAttributesProps for clear icon
colorstringanyFinallyReactColor
customClearReact.ReactNodeCustom clear component
disabledbooleanDisable input
dropdownArrowPropsHTMLAttributesProps for dropdown arrow
dropdownPropsHTMLAttributesProps for dropdown icon container
floatingPlaceholderbooleanFloat placeholder when input is not empty
initialValuestringInitial value for input
inputPropsHTMLAttributesProps for inner input
labelPropsHTMLAttributesProps for left and right labels
leftIconanyIcon to show on left side of input
leftLabelstringLabel to show on left side of input
leftLabelPropsHTMLAttributesProps for left label
maskstringMask with 1 representing a number input. Example: 111-111-1111
namestringName for input
onClear() => voidCallback for clear icon
outlinebooleanOutline input
passwordIconanyIcon to display when input is a password
passwordIconPropsHTMLAttributesProps for password icon
placeholderstringPlaceholder for input
readOnlybooleanMake input read only
rightIconanyIcon to show on right side of input
rightLabelstringLabel to show on right side of input
rightLabelPropsHTMLAttributesProps for right label
roundedbooleanRound input
showClearbooleanShow clear icon
showDropdownbooleanShow dropdown icon
simplebooleanSimple input with no styles
size'sm' | 'md' | 'lg'Size of input
type'text' | 'password' | 'textarea'Type of formatting
valuestringValue for input