The Angular 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.
The Angular 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.
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.
Easily create input groups by prepending or appending icons, buttons, or text with floating labels in the TextBox component. For example, you can prepend text with a dollar symbol ($) for price input, or prepend an at sign (@) for user names.
The Angular 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.
The Angular TextBox component has built-in sizing support (normal and small modes) to fit the input box’s size with sufficient padding and spacing.
The TextBox component works seamlessly with Angular template-driven forms, reactive forms, and native HTML forms. It also supports applying corresponding validation styles for success, error, and warning states.
The TextBox component capable to handle multiple lines of text with floating label that helps you to accept address, description, comments, feedback, and more.
Easily set or retrieve the value in the Angular TextBox component to process it, and enable a clear button to allow users to reset the input value.
The Angular 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.
The Angular 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.
Developers can control the appearance and behaviors of the Angular TextBox component, including its floating label, using a rich set of APIs.
Easily get started with the Angular TextBox using a few simple lines of HTML and TS code example as demonstrated below. Also explore the Angular TextBox example that shows how to render and configure the TextBox in Angular.
<div class="control-section">
<ejs-textbox placeholder="Outlined" floatLabelType="Auto"></ejs-textbox>
</div>
import { Component, Inject, ViewEncapsulation } from '@angular/core';
import { TextBoxComponent } from '@syncfusion/ej2-angular-inputs';
@Component({
selector: 'control-content',
templateUrl: 'default.html',
encapsulation: ViewEncapsulation.None
})
export class DefaultTextboxController {
}
TextBox is also available in Blazor, React, Vue, and JavaScript frameworks. Check out the different TextBox platforms from the links below,
Syncfusion Angular Textbox provides the following features:
You can find our Angular TextBox demo here.
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 and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
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.