We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The React TextBox (text field) is a component for editing, displaying, or entering plain text on forms to capture user names, phone numbers, email, and more. This component is an extended version of the HTML5 TextBox (input type text) component with icons, floating labels, different sizing, grouping, validation states, and more. It is available in an HTML5/CSS version and a JavaScript version.


React TextBox

The React TextBox component provides a floating label with minimal configuration. It supports most of the features that are available in the pure HTML5/CSS version of the TextBox component.


HTML5/CSS TextBox

The simple TextBox component renders using pure CSS and HTML. It supports all the essential features, such as input groups with icons, floating labels, multiline text, different sizing, validation states, and more.


Input group

Easily create input groups by prepending or appending icons, buttons, or text with floating labels in the React TextBox component. For example, you can prepend text with a dollar symbol ($) for price input, or prepend an at sign (@) for user names.


Floating label (placeholder text)

The React TextBox component floats placeholder text to the top of the input box with an animation when the input receives focus, or the input has a value. The floating label is used to ensure the input value and label are always visible.


Input sizing

The React TextBox component has built-in sizing support (normal and small modes) to fit the input box’s size with sufficient padding and spacing.


Input validation with HTML forms

The React TextBox component can validate the input value and apply the corresponding validation styles for success, error, and warning states, which are used in most standard HTML forms.


Multiline TextBox

The React TextBox component capable to handle multiple lines of text with floating label that helps you to accept address, description, comments, feedback, and more.


Get and set textbox value

Easily set or retrieve the value in the React TextBox component to process it, and enable a clear button to allow users to reset the input value.


Right-to-left (RTL) rendering

The React TextBox component supports right-to-left (RTL) rendering. Users can change the text direction and layout of the TextBox component from right to left. This improves the user experience and accessibility for users who use RTL languages.


Themes

The React TextBox component has several built-in themes such as Material, Bootstrap, Fabric (Office 365), Tailwind CSS, and High Contrast. Users can customize any of these built-in themes or create new themes either by overriding Sass variables or using our Theme Studio application.

Developer-friendly APIs

Developers can control the appearance and behaviors of the React TextBox component, including its floating label, using a rich set of APIs.


React TextBox Code Example

Easily get started with the React TextBox using a few simple lines of TSX code example as demonstrated below. Also explore the React TextBox example that shows how to render and configure the TextBox in React.

import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';
import * as React from "react";
import * as ReactDOM from "react-dom";

export default class App extends React.Component<{}, {}> {
public render() {
    return (
         <div className="App">
            <div className="textboxes">
                <h4>FloatLabelType as Auto</h4>
                <TextBoxComponent placeholder="First Name" floatLabelType="Auto"/>
            </div>
            <div className="textboxes">
                <h4>FloatLabelType as Always</h4>
                <TextBoxComponent placeholder="Last Name" floatLabelType="Always"/>
            </div>
        </div>
    )
}
};
ReactDOM.render(<App />, document.getElementById('input-container'));

Other supported frameworks

TextBox component is also available in Blazor, Vue, Angular and JavaScript frameworks. Check out the different TextBox platforms from the links below,




85+ REACT UI COMPONENTS

Frequently Asked Questions

The Syncfusion React TextBox component provides the following features:

  • Provides an extended version of the HTML input element, supporting both pure-CSS and pure-JavaScript versions.
  • Easily create input groups with icons, buttons, help text, and validation messages.
  • Supports standard Syncfusion themes which include Bootstrap v5 and Tailwind CSS.
  • Add a modern look to your entered text and display floating labels using React.
  • Allows adjusting the input size and supports multiline mode.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • One of the best React TextBox in the market that offers feature-rich UI to interact with the software.
  • Extensive demos and documentation to learn quickly and get started with React TextBox.

We do not sell the React TextBox separately. It is only available for purchase as part of the Syncfusion team license. This contains over 1,800 components and frameworks, including the React TextBox. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. In addition, we might offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

You can find our React TextBox demo, which demonstrates how to render and configure the TextBox.

No, our 1,800+ components and frameworks for web, mobile, and desktop, including our React TextBox, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their TextBox component alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,800+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon