Floating labels: auto, always, or never
Set floatLabelType to Auto so the placeholder floats above the value on focus. The label stays visible, so users keep the field name in view.
AIMCP Server and Agent Skills included
Capture names, emails, and phone numbers in text fields with floating labels, icons and adornments, a clear button, validation states, three sizes, and multiline input. AI assistants set it up for you from the current docs.
Trusted by the world’s leading companies
Now easier with AI
Coding assistants write the setup from the current docs instead of guessing.
01For developers
The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current TextBox docs and recommended patterns.
AI coding assistantMCP · Syncfusion React
Use floating labels for the name and email fields.
search_docs“React TextBox floating labels” · 2 doc sections
+<TextBoxComponent placeholder="Full name"
+ floatLabelType="Auto" />
+<TextBoxComponent placeholder="Email"
+ floatLabelType="Auto" />
Documented API: placeholder, floatLabelType
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Add a user icon in front of the username field.
search_docs“React TextBox adornments and icons” · 2 doc sections
+<TextBoxComponent placeholder="Username"
+ floatLabelType="Auto"
+prependTemplate={() => <span className="e-icons e-user" />} />
Documented API: prependTemplate, appendTemplate
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Make a password field with an eye icon that shows or hides the value.
search_docs“React TextBox password field with a show toggle” · 2 doc sections
+<TextBoxComponent ref={box} type="password"
+ placeholder="Password"
+appendTemplate={() => <span className="e-icons e-eye" onClick={toggle} />} />
Documented API: type, appendTemplate
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Turn the address field into a multiline box with a floating label.
search_docs“React TextBox multiline input” · 2 doc sections
+<TextBoxComponent multiline={true} placeholder="Address"
+ floatLabelType="Auto" />
Documented API: multiline, floatLabelType
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Show the email field in the error state when the address is not valid.
search_docs“React TextBox validation states” · 2 doc sections
+<TextBoxComponent placeholder="Email"
+ cssClass={valid ? 'e-success' : 'e-error'} />
Documented API: cssClass
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Add a clear button to the search box and limit it to 50 characters.
search_docs“React TextBox clear button and length limit” · 2 doc sections
+<TextBoxComponent placeholder="Search"
+ showClearButton={true}
+ maxLength={50} />
Documented API: showClearButton, maxLength
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Make the filter fields in the toolbar small.
search_docs“React TextBox field sizes” · 2 doc sections
+<TextBoxComponent placeholder="Filter by name"
+ cssClass="e-small" />
+<TextBoxComponent placeholder="Filter by city"
+ cssClass="e-small" />
Documented API: cssClass
ResultRendered in your app
AI coding assistantMCP · Syncfusion React
Show the account ID as read-only and disable the referral code field.
search_docs“React TextBox read-only and disabled fields” · 2 doc sections
+<TextBoxComponent placeholder="Account ID"
+ value="AC-20418" readonly={true} />
+<TextBoxComponent placeholder="Referral code"
+ enabled={false} />
Documented API: readonly, enabled
ResultRendered in your app
Features in depth
Open a demo to try each one, or the docs to see the API.
Set floatLabelType to Auto so the placeholder floats above the value on focus. The label stays visible, so users keep the field name in view.
Add the e-success, e-warning, or e-error class through cssClass to show validation feedback in a form. Set maxLength to cap the number of characters users can type.
Apply e-small or e-bigger through cssClass for compact or touch-friendly fields. Outlined and filled styles are available in Material themes, and CSS rules restyle the rest.
The TextBox follows WCAG 2.2 and WAI-ARIA practices and renders right to left with enableRtl. Brand it in Tailwind 3, Bootstrap 5, Material 3, Fluent 2, and high-contrast themes with Theme Studio.
Use the TextBox in function components with hooks, and read or set the text through the value property and change event. The API reference lists every property, method, and event.
Get started
With an AI coding assistant
Add Syncfusion React TextBox fields to my sign-up form: full name and email with floating labels, a clear button, and the error state when the email is not valid.
By hand, in three steps
1 · Install
npm install @syncfusion/ej2-react-inputs @syncfusion/ej2-tailwind3-theme --save
2 · src/App.css
@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/textbox/index.css';
3 · src/App.tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';
import './App.css';
export default function App() {
return (
<TextBoxComponent placeholder="Full name" floatLabelType="Auto" showClearButton={true} />
);
}
Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements
Customer reviews
“Awesome, enough said”
Easy usability, solving real-life problems, easy to implement. Most of the cases have the operators and settings possibilities you need right away.
“A giant framework with great pricing options”
I have loved the components and options that Syncfusion has; besides, its documentation, demos, and support are excellent.
Customer story · Igniatek
“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”
Somnath Maji, Founder, Igniatek Consultancy
Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.
Complete feature list
Showing all 33 features. Each one opens its demo or documentation.
No feature matches that search. Try another word, or open the TextBox demos.
Related input components:React TextAreaReact Numeric TextBoxReact Input Mask
Questions and answers
The Syncfusion React TextBox is a text input for forms. It extends the HTML input with floating labels, icons, adornments, a clear button, validation states, sizes, and a multiline mode. Explore the demo
Use the TextBox for single-line entries such as names and emails, or turn on multiline for a short multiline field. The TextArea is built for longer text, with rows, columns, resize modes, and adornment layouts. React TextArea
Install @syncfusion/ej2-react-inputs and the Tailwind 3 theme, import textbox/index.css, and render TextBoxComponent with a placeholder. The getting started section on this page shows each step. Read the getting started guide
Set floatLabelType to Auto so the placeholder moves above the value when the field has focus or content. Always keeps it above, and Never keeps it inside. Read about floating labels
Yes. Use prependTemplate and appendTemplate to render icons, text, or buttons before and after the input, or call addIcon to add an icon to either side. Read about adornments
Add the e-error, e-warning, or e-success class through cssClass. The field and its floating label then take the matching color. Read about validation states
Yes. Set maxLength to the highest number of characters the field accepts, and users cannot type past it. Read about maximum length
Yes. Set multiline to true for addresses, descriptions, and comments. The multiline box resizes vertically and supports floating labels. Multiline demo
Add e-small or e-bigger through cssClass for compact or larger fields. Outlined and filled styles come with Material themes, and CSS rules customize height, fonts, and label colors. Read about sizing
Yes. It meets WCAG 2.2 and Section 508, uses the WAI-ARIA textbox role with aria-placeholder and aria-labelledby, and supports right-to-left layouts. Read about accessibility
Yes. Syncfusion also offers a lightweight TextBox built from the ground up with React, for data entry with full customization. Explore the pure React TextBox
Yes. The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current TextBox docs and recommended patterns. You need a Syncfusion API key and an active license, which can be a commercial, Community, or trial license. Set up the MCP server
It is a commercial component with a 30-day free trial. A free Community License is available for companies and individuals with less than $1 million USD in annual gross revenue, five or fewer developers, and 10 or fewer total employees. Check Community License eligibility
Resources
TextBox for other frameworks:AngularBlazorJavaScriptVue
More React components:TextAreaNumeric TextBoxInput MaskAll 140+ React components
Syncfusion React TextBox
The full TextBox, the MCP server, and Agent Skills, free for 30 days.