TextField
Allows users to enter and edit text.
Preview
Usage
Component API
TextField
Variants
Label Styles
Labels can be positioned outside (default) or inside the field.
Label Styles
Icons & Adornments
Add leading icons or text prefixes. Website allows free text, while phone prefixes restrict input to numbers.
Icons & Adornments
Trailing Actions
Interactive elements at the end of the input, such as a currency dropdown.
Trailing Actions
States
Visual feedback for errors, disabled state, and helper text.
States
Width & Full Width
TextField is full-width by default. You can set a fixed width or set fullWidth to false (auto width).
Width & Full Width
Input Formats
Currency
Tự động chèn dấu phân cách hàng nghìn khi nhập số tiền. Hỗ trợ dấu phẩy (mặc định) hoặc dấu chấm cho format VN.
Currency
Phone Number
Tự động nhóm các chữ số thành các cụm 3-3-3 để dễ đọc. Chỉ cho phép nhập số.
Phone Number
Password
Tự động thêm icon Eye toggle để ẩn/hiện mật khẩu. Chặn dấu tiếng Việt và emoji, giữ lại ký tự đặc biệt cho mật khẩu mạnh.
Password
Bank Account & Card Number
Tự động nhóm mỗi 4 chữ số để dễ đọc. Card Number giới hạn tối đa 16 chữ số.
Bank Account & Card Number