# Syncfusion React Inputs

> Comprehensive guide for implementing Syncfusion React input components including Uploader, NumericTextBox, TextBox, TextArea, CheckBox, OTP Input, Signature, RangeSlider, ColorPicker, MaskedTextBox, and Rating. Use this when building file upload UIs with async/chunk uploads, drag-and-drop functionality, numeric inputs with validation and formatting, text inputs with floating labels, custom adornments, form integration, accessibility compliance, and styling in React applications.

- Skill: `syncfusion/syncfusion-react-inputs` (Agent Skill, multi-file: 95 files)
- Install (CLI): `npx skillmds add syncfusion/syncfusion-react-inputs`
- Raw SKILL.md: https://api.skillmd.com/api/skills/syncfusion/syncfusion-react-inputs/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: syncfusion (https://skillmd.com/u/syncfusion)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/syncfusion/syncfusion-react-inputs

---


# Implementing Syncfusion React Inputs

## Uploader

The Syncfusion React **UploaderComponent** provides a rich file upload control with async upload, drag-and-drop, chunk upload with pause/resume/cancel, validation, templates, form integration, and accessibility support.

### Navigation Guide

> 🛑 **Agentic use:** Do not execute multiple steps autonomously. Confirm with the user before each action (install, run, file creation).

#### Getting Started
📄 **Read:** [references/getting-started.md](references/uploader-getting-started.md)
- Installing `@syncfusion/ej2-react-inputs` 🛑 *STOP — Do not install packages autonomously. Ask the user to run: `npm install @syncfusion/ej2-react-inputs`. Verify with `npm audit`*
- License registration
- Basic `UploaderComponent` usage in JSX/TSX
- CSS theme imports
- Drop area configuration
- Success and failure event handling

#### Asynchronous Upload
📄 **Read:** [references/async-upload.md](references/uploader-async-upload.md)
- `asyncSettings` with `saveUrl` and `removeUrl`
- Multiple vs. single file upload (`multiple`)
- Auto upload vs. manual upload (`autoUpload`)
- Sequential upload (`sequentialUpload`)
- Preloaded files (`files` property)
- Adding custom HTTP headers via `uploading`/`removing` events
- Server-side save/remove action examples

#### Chunk Upload
📄 **Read:** [references/chunk-upload.md](references/uploader-chunk-upload.md)
- Enabling chunk upload with `asyncSettings.chunkSize`
- Retry configuration (`retryCount`, `retryAfterDelay`)
- Pause and resume chunked uploads (`pause`, `resume` methods)
- Cancel uploads (`cancel` method)
- `chunkSuccess` and `chunkFailure` events
- Server-side chunk handling (C#)

#### Validation
📄 **Read:** [references/validation.md](references/uploader-validation.md)
- Allowed file extensions (`allowedExtensions`)
- File size limits (`minFileSize`, `maxFileSize`)
- Maximum file count using `selected` event
- Duplicate file prevention
- Drag-and-drop image validation

#### File Sources
📄 **Read:** [references/file-source.md](references/uploader-file-source.md)
- Clipboard paste upload
- Directory/folder upload (`directoryUpload`)
- Drag-and-drop with custom drop area (`dropArea`)
- Customizing drop area appearance

#### Templates and Customization
📄 **Read:** [references/template-customization.md](references/uploader-template-customization.md)
- File list `template` property
- Custom upload UI with `showFileList: false`
- Customizing action buttons (`buttons` property)
- Progress bar customization
- Hiding the default drop area
- Style and appearance overrides

#### Advanced How-To Scenarios
📄 **Read:** [references/advanced-how-to.md](references/uploader-advanced-how-to.md)
- Programmatic file upload (`upload` method, `getFilesData`)
- Invisible/background upload
- Image preview before uploading
- Resize images before upload
- Sort selected files
- Check file size / MIME type before upload
- Confirm dialog before file removal
- Open/edit uploaded files
- Trigger file browser from external button
- Convert uploaded image to binary
- JWT authentication for secure upload ⚠️ *Never hardcode tokens. Retrieve from a secure session store at runtime. Do not log request headers or token values.*
- Form support (HTML form, template-driven, reactive)
- Localization (custom locale strings)
- Accessibility and keyboard navigation

#### API Reference
📄 **Read:** [references/api.md](references/uploader-api.md)
- All properties (`allowedExtensions`, `asyncSettings`, `autoUpload`, `buttons`, `cssClass`, `directoryUpload`, `dropArea`, `dropEffect`, `enabled`, `files`, `htmlAttributes`, `locale`, `maxFileSize`, `minFileSize`, `multiple`, `sequentialUpload`, `showFileList`, `template`, and more)
- All methods (`upload`, `remove`, `cancel`, `pause`, `resume`, `retry`, `clearAll`, `getFilesData`, `bytesToSize`, `createFileList`, `sortFileList`)
- All events (`uploading`, `success`, `failure`, `selected`, `removing`, `change`, `progress`, `chunkSuccess`, `chunkFailure`, `chunkUploading`, `actionComplete`, `beforeRemove`, `beforeUpload`, `canceling`, `clearing`, `fileListRendering`, `pausing`, `resuming`, `created`)

### Quick Start Example

```tsx
import { UploaderComponent } from '@syncfusion/ej2-react-inputs';
import '@syncfusion/ej2-base/styles/material.css';
import '@syncfusion/ej2-buttons/styles/material.css';
import '@syncfusion/ej2-inputs/styles/material.css';
import '@syncfusion/ej2-popups/styles/material.css';
import '@syncfusion/ej2-react-inputs/styles/material.css';

function App() {
  // ⚠️ Replace with your own server-side endpoints.
  // Never use third-party demo URLs in production — files will be sent to that external server.
  const asyncSettings = {
    saveUrl: '/api/upload/save',
    removeUrl: '/api/upload/remove'
  };

  const onSuccess = (args: any) => {
    console.log('Upload operation:', args.operation, 'File:', args.file.name);
  };

  const onFailure = (args: any) => {
    console.error('Upload failed:', args.file.name);
  };

  return (
    <UploaderComponent
      asyncSettings={asyncSettings}
      autoUpload={false}
      success={onSuccess}
      failure={onFailure}
    />
  );
}
```

### Common Patterns

#### Auto Upload with Validation
```tsx
<UploaderComponent
  asyncSettings={{ saveUrl: '/api/upload/save', removeUrl: '/api/upload/remove' }}
  allowedExtensions=".pdf,.doc,.docx"
  maxFileSize={5000000}
  multiple={true}
/>
```

#### Manual Upload with Custom Buttons
```tsx
<UploaderComponent
  asyncSettings={{ saveUrl: '/api/upload/save', removeUrl: '/api/upload/remove' }}
  autoUpload={false}
  buttons={{ browse: 'Choose File', clear: 'Clear All', upload: 'Upload All' }}
/>
```

#### Chunk Upload for Large Files
```tsx
<UploaderComponent
  asyncSettings={{
    saveUrl: '/api/upload/save',
    removeUrl: '/api/upload/remove',
    chunkSize: 500000   // 500 KB chunks
  }}
/>
```

### Key Decision Guide

| Need | Property/Event |
|---|---|
| Server URLs | `asyncSettings.saveUrl` + `asyncSettings.removeUrl` |
| Auto vs manual upload | `autoUpload` (default: `true`) |
| Large file upload | `asyncSettings.chunkSize` |
| Restrict file types | `allowedExtensions` |
| Limit file size | `maxFileSize` / `minFileSize` |
| Preload files from server | `files` prop |
| Upload one at a time | `sequentialUpload: true` |
| Entire folder upload | `directoryUpload: true` |
| Custom drop target | `dropArea` |
| Custom file list UI | `template` or `showFileList: false` |
| Add auth headers | `uploading` event → `args.currentRequest.setRequestHeader()` |
| Send extra form data | `uploading` event → `args.customFormData` |

## NumericTextBox

The Syncfusion React **NumericTextBoxComponent** is a specialized input control for numeric data entry with support for number formatting (currency, percentage, scientific notation), min/max range validation, spin buttons, decimal precision control, internationalization, RTL languages, and full WCAG 2.2 accessibility compliance.

### Documentation & Navigation Guide

> 🛑 **Agentic use:** Do not execute multiple steps autonomously. Confirm with the user before each action (install, run, file creation).

When the user needs help with NumericTextBox, guide them to the appropriate reference:

#### Getting Started
📄 **Read:** [references/getting-started.md](references/numerictextbox-getting-started.md)
- Installation and package setup
- CSS imports and themes
- React component import and basic JSX
- Creating your first NumericTextBox
- Running the application

#### Formats & Validation
📄 **Read:** [references/formats-and-validation.md](references/numerictextbox-formats-and-validation.md)
- Standard format specifiers (currency, percentage, number, scientific)
- Custom number formats with # and 0 patterns
- Range validation with min and max properties
- strictMode for enforcing valid ranges
- Real-world formatting examples

#### Spin Buttons & Step Control
📄 **Read:** [references/spin-buttons-and-step.md](references/numerictextbox-spin-buttons-and-step.md)
- Enabling/disabling spin button arrows
- Step property for increment values
- Customizing spin button appearance and behavior
- Precision with step increments
- Keyboard shortcuts (Arrow Up/Down)

#### Adornments & Styling
📄 **Read:** [references/adornments-and-styling.md](references/numerictextbox-adornments-and-styling.md)
- Prefix and suffix text (units, currency symbols)
- CSS classes and custom styling
- Placeholder, disabled, and readonly states
- Focus and blur event handling
- Theme customization and appearance options

#### Precision & Decimals
📄 **Read:** [references/precision-decimals.md](references/numerictextbox-precision-decimals.md)
- decimals property for controlling decimal places
- validateDecimalOnType for real-time precision validation
- Maintaining trailing zeros in display
- Rounding behavior and edge cases
- Precision during input vs display

#### Two-Way Binding & Forms
📄 **Read:** [references/two-way-binding-forms.md](references/numerictextbox-two-way-binding-forms.md)
- Two-way value binding in React (value prop + onChange)
- Controlled component patterns
- React state management
- React Hook Form integration
- Form validation with NumericTextBox

#### Globalization & Accessibility
📄 **Read:** [references/globalization-accessibility.md](references/numerictextbox-globalization-accessibility.md)
- Internationalization and locale support
- Right-to-Left (RTL) language support
- WCAG 2.2 accessibility compliance
- Keyboard navigation and shortcuts
- Screen reader support with ARIA attributes
- Focus management and color contrast

#### API Reference
📄 **Read:** [references/api.md](references/numerictextbox-api.md)
- Complete properties reference (value, min, max, step, format, decimals, etc.)
- Methods reference (increment, decrement, getText, focusIn, focusOut, destroy, etc.)
- Events reference with full argument types (change, blur, focus, created, destroyed)

### Quick Start Example

Here's a minimal working example to get started:

```jsx
import React, { useState } from 'react';
import { NumericTextBoxComponent } from '@syncfusion/ej2-react-inputs';
import '@syncfusion/ej2-base/styles/material3.css';
import '@syncfusion/ej2-buttons/styles/material3.css';
import '@syncfusion/ej2-inputs/styles/material3.css';

export default function App() {
  const [value, setValue] = useState(10);

  return (
    <div style={{ padding: '20px' }}>
      <h3>Enter a Number</h3>
      <NumericTextBoxComponent
        value={value}
        onChange={(e) => setValue(e.value)}
        min={0}
        max={100}
        step={1}
      />
      <p>Current Value: {value}</p>
    </div>
  );
}
```

**Key points:**
- Import `NumericTextBoxComponent` from `@syncfusion/ej2-react-inputs`
- Import required CSS themes (material3 in this example)
- Use `value` prop for the current numeric value
- Use `onChange` event to update React state
- Add `min`, `max`, `step` for validation and controls

### Common Patterns

#### 1. Currency Input
```jsx
<NumericTextBoxComponent
  value={99.99}
  format="c2"
  min={0}
  placeholder="Enter amount"
/>
```

#### 2. Percentage Input
```jsx
<NumericTextBoxComponent
  value={50}
  format="p"
  min={0}
  max={100}
/>
```

#### 3. Integer-Only Input
```jsx
<NumericTextBoxComponent
  value={10}
  decimals={0}
  step={1}
  min={0}
/>
```

#### 4. Bounded Range with Validation
```jsx
<NumericTextBoxComponent
  value={25}
  min={0}
  max={100}
  strictMode={true}
  placeholder="0-100"
/>
```

#### 5. Form Field with Label
```jsx
<div>
  <label>Product Quantity:</label>
  <NumericTextBoxComponent
    value={qty}
    onChange={(e) => setQty(e.value)}
    min={1}
    step={1}
    prefix="Units: "
  />
</div>
```

### Key Properties Reference

| Property | Type | Purpose |
|----------|------|---------|
| `value` | number | Current numeric value |
| `min` | number | Minimum allowed value |
| `max` | number | Maximum allowed value |
| `step` | number | Increment/decrement step (default: 1) |
| `decimals` | number | Number of decimal places when focused |
| `format` | string | Number format (n2, c2, p2, e2, etc.) |
| `currency` | string | ISO 4217 currency code (e.g., 'USD', 'EUR') |
| `placeholder` | string | Placeholder text when empty |
| `floatLabelType` | FloatLabelType | Float label behavior ('Never', 'Always', 'Auto') |
| `readonly` | boolean | Prevent user input |
| `enabled` | boolean | Enable or disable the control (default: true) |
| `strictMode` | boolean | Enforce min/max validation (default: true) |
| `validateDecimalOnType` | boolean | Restrict decimal length during typing |
| `showSpinButton` | boolean | Show/hide spinner arrows (default: true) |
| `showClearButton` | boolean | Show/hide clear icon |
| `allowMouseWheel` | boolean | Enable mouse wheel increment/decrement (default: true) |
| `cssClass` | string | Additional CSS classes for custom styling |
| `width` | number \| string | Width of the component |

### Common Use Cases

**1. Shopping Cart - Quantity Input**
- Integer-only, min=1, step=1, spinner for easy adjustment

**2. Price Calculator - Currency Field**
- format="c2", min=0, prefix="$", two decimal places

**3. Rating or Score - 0-100 Range**
- min=0, max=100, strictMode=true, no decimals

**4. Discount Percentage**
- format="p", min=0, max=100, two decimal places

**5. Measurement Input**
- decimals=2, suffix=" cm", min=0, spinner for precision

**6. Financial Form**
- format="c2", validation, form integration, accessibility

### Next Steps

1. **Package requirement:** The packages `@syncfusion/ej2-react-inputs`, `@syncfusion/ej2-base`, and `@syncfusion/ej2-buttons` must be present in your project's `package.json`. Confirm they are already installed and that your lockfile (e.g., `package-lock.json` or `yarn.lock`) pins their versions for supply-chain integrity. When adding them, use an explicit version range such as `@syncfusion/ej2-react-inputs@^27.x.x` to avoid unpinned dependency risks.
2. **Getting Started reference:** For installation details and basic setup, see [references/getting-started.md](references/numerictextbox-getting-started.md).
3. **Choose your reference:** Based on your use case (formatting, validation, forms, etc.), navigate to the relevant reference section above.
4. **Review examples:** Each reference contains ready-to-use code samples that can be adapted to your requirements.
5. **Customize:** Modify the examples to fit your specific use case and application needs.

---

For detailed implementation guidance, navigate to the appropriate reference file above.

## TextBox

The TextBox component is a lightweight input control that captures user text input with support for floating labels, validation states, icons, and advanced features. This skill guides you through implementing, configuring, and customizing the TextBox component in React applications.

### Navigation Guide

> 🛑 **Agentic use:** Do not execute multiple steps autonomously. Confirm with the user before each action (install, run, file creation).

#### Getting Started
📄 **Read:** [references/getting-started.md](references/textbox-getting-started.md)
- Vite setup for React development
- Installing `@syncfusion/ej2-react-inputs` package 🛑 *STOP — Do not install packages autonomously. Ask the user to run: `npm install @syncfusion/ej2-react-inputs`. Pin a specific version (e.g., `@syncfusion/ej2-react-inputs@28.x.x`) and verify with `npm audit`*
- Adding CSS imports and themes
- Creating your first TextBox component
- Adding icons and floating labels
- Running the development server 🛑 *STOP — Do not start the dev server autonomously. Ask the user to run: `npm run dev`*

#### Features and Groups
📄 **Read:** [references/features-and-groups.md](references/textbox-features-and-groups.md)
- Floating label behavior (Never, Always, Auto)
- Icons with `addIcon()` method (prepend/append)
- Clear button with `showClearButton` property
- Rounded corner with `e-corner` CSS class
- Disabled state with `enabled={false}`
- Multi-line textbox creation
- TextBox with clear button and floating label combinations

#### Styling and Sizing
📄 **Read:** [references/styling-and-sizing.md](references/textbox-styling-and-sizing.md)
- Three predefined sizes: Normal, Small (`e-small`), Large (`e-bigger`)
- Applying size classes via `cssClass` property
- Rounded corner with `e-corner` CSS class
- CSS customization for TextBox wrapper and floating label
- Custom CSS classes and themes
- Responsive design patterns

#### Multiline TextBox
📄 **Read:** [references/multiline-textbox.md](references/textbox-multiline-textbox.md)
- Creating multiline/textarea inputs with `multiline={true}`
- Floating labels with multiline
- Auto-resizing textboxes
- Disabling resize functionality
- Limiting text length with `htmlAttributes={{ maxlength: '...' }}`
- Character counting and display

#### Validation and States
📄 **Read:** [references/validation-and-states.md](references/textbox-validation-and-states.md)
- Error, warning, and success validation states via `cssClass`
- Applying validation classes (`e-error`, `e-warning`, `e-success`)
- Disabled state with `enabled={false}` (not `disabled`)
- Read-only state with `readonly={true}`
- Differences between disabled and read-only
- Dynamic color changes based on values using `input` event

#### Advanced Features
📄 **Read:** [references/advanced-features.md](references/textbox-advanced-features.md)
- Adornments: `prependTemplate` and `appendTemplate` properties
- Interactive adornments (password toggle, delete button)
- React functional components with hooks
- `useState`, `useEffect`, `useRef`, `useReducer` integration
- Event handling (created, input, change events)
- Form validation patterns

#### Accessibility and Migration
📄 **Read:** [references/accessibility-and-migration.md](references/textbox-accessibility-and-migration.md)
- WCAG 2.2, Section 508, and WAI-ARIA compliance
- Screen reader support and ARIA attributes
- Right-to-Left (RTL) support with `enableRtl` property
- Keyboard navigation support
- Migrating from CSS TextBox to React component
- Before/after code comparison

#### API Reference
📄 **Read:** [references/api.md](references/textbox-api.md)
- All properties: `placeholder`, `floatLabelType`, `value`, `type`, `cssClass`, `multiline`, `showClearButton`, `enabled`, `readonly`, `enableRtl`, `enablePersistence`, `autocomplete`, `htmlAttributes`, `locale`, `width`, `prependTemplate`, `appendTemplate`
- Methods: `addIcon`, `addAttributes`, `removeAttributes`, `focusIn`, `focusOut`, `destroy`, `getPersistData`
- Events: `created`, `destroyed`, `change`, `input`, `focus`, `blur`

### Quick Start

#### Basic TextBox with Floating Label

```tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';
import './App.css';

export default function App() {
  return (
    <TextBoxComponent 
      placeholder="Enter your name" 
      floatLabelType="Auto"
    />
  );
}
```

#### TextBox with Icon

```tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';
import { useRef } from 'react';

export default function App() {
  const textboxRef = useRef(null);

  const handleCreate = () => {
    if (textboxRef.current) {
      textboxRef.current.addIcon('append', 'e-icons e-input-popup-date');
    }
  };

  return (
    <TextBoxComponent
      placeholder="Enter date"
      floatLabelType="Auto"
      ref={textboxRef}
      created={handleCreate}
    />
  );
}
```

#### TextBox with Clear Button

```tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';

export default function App() {
  return (
    <TextBoxComponent
      placeholder="Enter your email"
      floatLabelType="Auto"
      showClearButton={true}
    />
  );
}
```

#### Multiline TextBox

```tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';

export default function App() {
  return (
    <TextBoxComponent
      multiline={true}
      placeholder="Enter your address"
      floatLabelType="Auto"
    />
  );
}
```

### Common Patterns

#### Form with Validation States

```tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';
import { useState } from 'react';

export default function ValidationForm() {
  const [cssClass, setCssClass] = useState('');

  return (
    <div>
      <TextBoxComponent
        placeholder="Enter username"
        cssClass={cssClass}
        floatLabelType="Auto"
        input={(e: any) => {
          if (!e.value) setCssClass('');
          else if (e.value.length < 3) setCssClass('e-error');
          else if (e.value.length < 6) setCssClass('e-warning');
          else setCssClass('e-success');
        }}
      />
    </div>
  );
}
```

#### Password TextBox with Toggle

```tsx
import * as React from 'react';
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';
import { useRef, useState } from 'react';

export default function PasswordInput() {
  const textboxRef = useRef<TextBoxComponent>(null);
  const [isVisible, setIsVisible] = useState(false);

  const toggleVisibility = () => {
    if (textboxRef.current) {
      const newVisibility = !isVisible;
      textboxRef.current.type = newVisibility ? 'text' : 'password';
      setIsVisible(newVisibility);
    }
  };

  function appendTemplate(): JSX.Element {
    return (
      <>
        <span className="e-input-separator"></span>
        <span
          className={`e-icons ${isVisible ? 'e-eye-slash' : 'e-eye'}`}
          onClick={toggleVisibility}
          style={{ cursor: 'pointer' }}
        ></span>
      </>
    );
  }

  return (
    <TextBoxComponent
      ref={textboxRef}
      type="password"
      placeholder="Enter password"
      floatLabelType="Auto"
      appendTemplate={appendTemplate}
    />
  );
}
```

#### Email Input with Unit Label

```tsx
import * as React from 'react';
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';

export default function EmailInput() {
  function prependTemplate(): JSX.Element {
    return (
      <>
        <span className="e-icons e-user"></span>
        <span className="e-input-separator"></span>
      </>
    );
  }

  function appendTemplate(): JSX.Element {
    return (
      <>
        <span className="e-input-separator"></span>
        <span>.com</span>
      </>
    );
  }

  return (
    <TextBoxComponent
      type="email"
      placeholder="Enter email"
      floatLabelType="Auto"
      prependTemplate={prependTemplate}
      appendTemplate={appendTemplate}
    />
  );
}
```

#### Rounded Corner TextBox

```tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';

export default function RoundedCornerTextBox() {
  return (
    <TextBoxComponent
      placeholder="Enter Date"
      cssClass="e-corner"
    />
  );
}
```

#### Disabled TextBox

```tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';

export default function DisabledTextBox() {
  return (
    <TextBoxComponent
      placeholder="Enter Name"
      enabled={false}
    />
  );
}
```

#### RTL TextBox

```tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';

export default function RTLTextBox() {
  return (
    <TextBoxComponent
      placeholder="أدخل اسمك"
      floatLabelType="Auto"
      enableRtl={true}
    />
  );
}
```

#### Auto-sizing Multiline TextBox

```tsx
import { TextBoxComponent } from '@syncfusion/ej2-react-inputs';
import { useRef } from 'react';

export default function AutoSizeTextbox() {
  const textboxRef = useRef(null);

  const handleInput = () => {
    if (textboxRef.current) {
      const elem = textboxRef.current.respectiveElement;
      elem.style.height = 'auto';
      elem.style.height = elem.scrollHeight + 'px';
    }
  };

  const handleCreate = () => {
    if (textboxRef.current) {
      textboxRef.current.addAttributes({ rows: 1 });
    }
    handleInput();
  };

  return (
    <TextBoxComponent
      multiline={true}
      placeholder="Enter your message"
      floatLabelType="Auto"
      ref={textboxRef}
      created={handleCreate}
      input={handleInput}
    />
  );
}
```

### Key Properties

| Property | Type | Purpose |
|----------|------|---------|
| `placeholder` | `string` | Hint text shown when input is empty |
| `floatLabelType` | `"Never" \| "Always" \| "Auto"` | Label animation behavior |
| `value` | `string` | Sets the content of the TextBox |
| `type` | `string` | Input type (`text`, `password`, `email`, `number`, etc.) |
| `multiline` | `boolean` | Convert to textarea for multi-line input |
| `showClearButton` | `boolean` | Display clear button when input has value |
| `cssClass` | `string` | Apply CSS classes for sizing/validation/appearance (e.g., `"e-error"`, `"e-small"`, `"e-corner"`) |
| `enabled` | `boolean` | Enable (`true`) or disable (`false`) input interaction |
| `readonly` | `boolean` | Allow selection but prevent editing |
| `enableRtl` | `boolean` | Enable right-to-left rendering |
| `enablePersistence` | `boolean` | Persist value state between page reloads ⚠️ *Stores data in browser storage — enable only with explicit user consent* |
| `autocomplete` | `string` | Control browser autocomplete (`"on"` \| `"off"`) |
| `htmlAttributes` | `{ [key: string]: string }` | Pass additional HTML attributes (e.g., `{ maxlength: '200' }`) |
| `locale` | `string` | Override global culture/localization value |
| `width` | `number \| string` | Set component width |
| `prependTemplate` | `() => JSX.Element` | Render element before input |
| `appendTemplate` | `() => JSX.Element` | Render element after input |

### Key Events

| Event | Arguments | Purpose |
|-------|-----------|---------|
| `created` | `Object` | Fires after component initialization |
| `destroyed` | `Object` | Fires when component is destroyed |
| `change` | `ChangedEventArgs` | Fires when value changes on focus-out |
| `input` | `InputEventArgs` | Fires on every keystroke |
| `focus` | `FocusInEventArgs` | Fires when TextBox gains focus |
| `blur` | `FocusOutEventArgs` | Fires when TextBox loses focus |

### Related Documentation

> **ℹ️ External links below are for manual reference only.** Do not auto-fetch these URLs in an agentic pipeline without explicit user consent.

- [Syncfusion React TextBox Component Demo](https://ej2.syncfusion.com/react/demos/#/tailwind3/textboxes/default) *(external)*
- [React TextBox API Reference](https://ej2.syncfusion.com/react/documentation/api/textbox/) *(external)*
- [Syncfusion React Inputs Package](https://www.npmjs.com/package/@syncfusion/ej2-react-inputs) *(external — verify before installing)*
- [React Functional Components](./references/textbox-advanced-features.md)

## CheckBox

The Syncfusion React `CheckBoxComponent` is a graphical UI element that allows users to select one or more options. It supports **checked**, **unchecked**, and **indeterminate** states, flexible label positioning, size variants, full accessibility compliance, and rich CSS customization.

**Package:** `@syncfusion/ej2-react-buttons`

---

### Navigation Guide

> 🛑 **Agentic use:** Do not execute multiple steps autonomously. Confirm with the user before each action (install, run, file creation).

#### Getting Started
📄 **Read:** [references/getting-started.md](references/checkbox-getting-started.md)
- Installing `@syncfusion/ej2-react-buttons` 🛑 *STOP — Do not install packages autonomously. Ask the user to run: `npm install @syncfusion/ej2-react-buttons --save`. Verify with `npm audit`*
- CSS theme imports for Tailwind3
- Minimal `CheckBoxComponent` setup
- Running the Vite/React app 🛑 *STOP — Do not start the dev server autonomously. Ask the user to run: `npm run dev`*

#### States (Checked, Unchecked, Indeterminate, Disabled)
📄 **Read:** [references/states.md](references/checkbox-states.md)
- Setting `checked={true}` for checked state
- Setting `indeterminate={true}` for indeterminate state
- Setting `disabled={true}` for disabled state
- Combined state examples

#### Label and Size
📄 **Read:** [references/label-and-size.md](references/checkbox-label-and-size.md)
- `label` prop for caption text
- `labelPosition` (`"Before"` / `"After"`)
- Small size via `cssClass="e-small"`
- Default vs. small size examples

#### Style and Appearance
📄 **Read:** [references/style-and-appearance.md](references/checkbox-style-and-appearance.md)
- Available CSS classes for overriding checkbox styles
- Color variant customization (primary, success, warning, danger, info)
- Custom frame shapes (round checkbox)
- Custom check icon
- Theme Studio integration

#### Accessibility and RTL
📄 **Read:** [references/accessibility.md](references/checkbox-accessibility.md)
- WCAG 2.2 / Section 508 compliance
- WAI-ARIA attributes (`aria-disabled`)
- Keyboard navigation (Space key)
- Right-to-left (`enableRtl`) support
- Screen reader support

#### How-To Guides
📄 **Read:** [references/how-to.md](references/checkbox-how-to.md)
- Name and value in form submission
- Enabling right-to-left display
- Building customized checkbox variants

#### API Reference
📄 **Read:** [references/api.md](references/checkbox-api.md)
- All properties: `checked`, `cssClass`, `disabled`, `enableHtmlSanitizer`, `enablePersistence`, `enableRtl`, `htmlAttributes`, `indeterminate`, `label`, `labelPosition`, `locale`, `name`, `value`
- Methods: `click()`, `destroy()`, `focusIn()`
- Events: `change`, `created`

---

### Quick Start

```bash
npm install @syncfusion/ej2-react-buttons --save
# Then run: npm audit
```

```css
/* src/App.css */
@import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css";
```

```tsx
import { CheckBoxComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
import './App.css';

function App() {
  return (
    <div>
      <CheckBoxComponent label="Accept Terms" />
    </div>
  );
}
export default App;
```

---

### Common Patterns

#### Controlled Checkbox with Change Handler
```tsx
import { CheckBoxComponent } from '@syncfusion/ej2-react-buttons';
import { ChangeEventArgs } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';

function App() {
  const [isChecked, setIsChecked] = React.useState(false);

  const handleChange = (args: ChangeEventArgs) => {
    setIsChecked(args.checked);
  };

  return (
    <CheckBoxComponent
      label="Subscribe to newsletter"
      checked={isChecked}
      change={handleChange}
    />
  );
}
export default App;
```

#### Parent / Children with Indeterminate State
```tsx
import { CheckBoxComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';

function App() {
  return (
    <ul>
      {/* Parent: indeterminate when some children are selected */}
      <li><CheckBoxComponent label="Select All" indeterminate={true} /></li>
      <li><CheckBoxComponent label="Option A" checked={true} /></li>
      <li><CheckBoxComponent label="Option B" /></li>
    </ul>
  );
}
export default App;
```

#### Form Submission with Name and Value
```tsx
import { CheckBoxComponent, ButtonComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';

function App() {
  return (
    <form>
      <CheckBoxComponent name="hobby" value="Reading" label="Reading" checked={true} />
      <CheckBoxComponent name="hobby" value="Gaming" label="Gaming" />
      <ButtonComponent isPrimary={true}>Submit</ButtonComponent>
    </form>
  );
}
export default App;
```

---

### Key Props at a Glance

| Prop | Type | Default | Purpose |
|------|------|---------|---------|
| `label` | `string` | `''` | Caption text next to checkbox |
| `checked` | `boolean` | `false` | Checked state |
| `indeterminate` | `boolean` | `false` | Indeterminate (partial) state |
| `disabled` | `boolean` | `false` | Disabled state |
| `labelPosition` | `'Before' \| 'After'` | `'After'` | Label placement |
| `cssClass` | `string` | `''` | Custom CSS class(es) |
| `name` | `string` | `''` | Form field name |
| `value` | `string` | `''` | Form field value |
| `enableRtl` | `boolean` | `false` | Right-to-left rendering |
| `enablePersistence` | `boolean` | `false` | Persist state across reloads ⚠️ *Stores data in browser storage — enable only with explicit user consent* |

---

## Signature

The Syncfusion React `SignatureComponent` renders a canvas-based signature pad that captures smooth handwritten signatures using variable-width bezier curves. It supports drawing, saving (PNG/JPEG/SVG/base64/blob), loading existing signatures, undo/redo history, customizable stroke and background appearance, and full accessibility compliance.

**Package:** `@syncfusion/ej2-react-inputs`

---

### Navigation Guide

> 🛑 **Agentic use:** Do not execute multiple steps autonomously. Confirm with the user before each action (install, run, file creation).

#### Getting Started
📄 **Read:** [references/getting-started.md](references/signature-getting-started.md)
- Installing `@syncfusion/ej2-react-inputs` 🛑 *STOP — Do not install packages autonomously. Ask the user to run: `npm install @syncfusion/ej2-react-inputs --save`. Verify with `npm audit`*
- CSS theme imports (Tailwind3)
- Minimal `SignatureComponent` setup
- Running the application 🛑 *STOP — Do not start the dev server autonomously. Ask the user to run: `npm run dev`*

#### Customization
📄 **Read:** [references/customization.md](references/signature-customization.md)
- Stroke width: `maxStrokeWidth`, `minStrokeWidth`, `velocity`
- Stroke color: `strokeColor`
- Background color: `backgroundColor`
- Background image: `backgroundImage`

#### Open and Save
📄 **Read:** [references/open-save.md](references/signature-open-save.md)
- Load signature from base64 or URL (`load`)
- Save as base64 (`getSignature`)
- Save as Blob (`saveAsBlob`, `getBlob`)
- Save as image file — PNG, JPEG, SVG (`save`)
- Save with background (`saveWithBackground`)

#### User Interaction
📄 **Read:** [references/user-interaction.md](references/signature-user-interaction.md)
- Undo/redo strokes (`undo`, `redo`, `canUndo`, `canRedo`)
- Clear the canvas (`clear`, `isEmpty`)
- Disabled state (`disabled`)
- Read-only mode (`isReadOnly`)
- Draw text as signature (`draw`)
- Keyboard shortcuts (Ctrl+Z, Ctrl+Y, Ctrl+S, Delete)

#### Toolbar Integration
📄 **Read:** [references/toolbar-integration.md](references/signature-toolbar-integration.md)
- Integrating with Syncfusion `ToolbarComponent`
- Wiring undo, redo, clear, and save toolbar buttons
- Stroke color picker using `ColorPickerComponent`
- Background color picker integration
- Stroke width dropdown with `DropDownListComponent`
- Enabling/disabling toolbar buttons based on signature state

#### Accessibility
📄 **Read:** [references/accessibility.md](references/signature-accessibility.md)
- WCAG 2.2 / Section 508 compliance
- Keyboard interaction (Ctrl+Z, Ctrl+Y, Ctrl+S, Delete)
- Screen reader and mobile device support

#### API Reference
📄 **Read:** [references/api.md](references/signature-api.md)
- All properties: `backgroundColor`, `backgroundImage`, `disabled`, `enablePersistence`, `isReadOnly`, `maxStrokeWidth`, `minStrokeWidth`, `saveWithBackground`, `strokeColor`, `velocity`
- All methods: `canRedo`, `canUndo`, `clear`, `destroy`, `draw`, `getBlob`, `getSignature`, `isEmpty`, `load`, `redo`, `refresh`, `save`, `saveAsBlob`, `undo`
- Events: `beforeSave`, `change`, `created`

---

### Quick Start

```bash
npm install @syncfusion/ej2-react-inputs --save
# Then run: npm audit
```

```css
/* src/App.css */
@import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-inputs/styles/tailwind3.css";
```

```tsx
import { SignatureComponent } from '@syncfusion/ej2-react-inputs';
import * as React from 'react';
import './App.css';

function App() {
  return (
    <div>
      <SignatureComponent id="signature" />
    </div>
  );
}
export default App;
```

---

### Common Patterns

#### Signature with Undo/Redo/Clear Controls
```tsx
import { SignatureComponent, SignatureChangeEventArgs } from '@syncfusion/ej2-react-inputs';
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';
import { useRef } from 'react';

function App() {
  const sigRef = React.useRef<SignatureComponent>(null);
  const [canUndo, setCanUndo] = React.useState(false);
  const [canRedo, setCanRedo] = React.useState(false);
  const [isEmpty, setIsEmpty] = React.useState(true);

  function handleChange(args: SignatureChangeEventArgs) {
    if (sigRef.current) {
      setCanUndo(sigRef.current.canUndo());
      setCanRedo(sigRef.current.canRedo());
      setIsEmpty(sigRef.current.isEmpty());
    }
  }

  return (
    <div>
      <ButtonComponent disabled={!canUndo} onClick={() => sigRef.current?.undo()}>Undo</ButtonComponent>
      <ButtonComponent disabled={!canRedo} onClick={() => sigRef.current?.redo()}>Redo</ButtonComponent>
      <ButtonComponent disabled={isEmpty} onClick={() => sigRef.current?.clear()}>Clear</ButtonComponent>
      <SignatureComponent id="signature" ref={sigRef} change={handleChange} />
    </div>
  );
}
export default App;
```

#### Save Signature as PNG
```tsx
import { SignatureComponent } from '@syncfusion/ej2-react-inputs';
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
import * as React from 'react';

function App() {
  const sigRef = React.useRef<SignatureComponent>(null);

  function saveSignature() {
    sigRef.current?.save('Png', 'MySignature');
  }

  return (
    <div>
      <SignatureComponent id="signature" ref={sigRef} />
      <ButtonComponent onClick={saveSignature}>Save as PNG</ButtonComponent>
    </div>
  );
}
export default App;
```

---

### Key Props at a Glance

| Prop | Type | Default | Purpose |
|------|------|---------|---------|
| `strokeColor` | `string` | `'#000000'` | Pen/stroke color (hex, rgb, or name) |
| `backgroundColor` | `string` | `''` | Canvas background color |
| `backgroundImage` | `string` | `''` | Canvas background image URL |
| `maxStrokeWidth` | `number` | `2` | Maximum stroke thickness |
| `minStrokeWidth` | `number` | `0.5` | Minimum stroke thickness |
| `velocity` | `number` | `0.7` | Controls stroke width variation |
| `disabled` | `boolean` | `false` | Disables the component |
| `isReadOnly` | `boolean` | `false` | Prevents drawing, allows focus |
| `saveWithBackground` | `boolean` | `true` | Include background when saving |
| `enablePersistence` | `boolean` | `false` | Persist state across page reloads ⚠️ *Stores signature data (biometric input) in browser storage — enable only with explicit user consent and applicable privacy disclosures* |

---

## OTP Input

A focused input component for collecting one-time passwords, PINs, and verification codes. Renders a configurable number of individual character input fields with full keyboard navigation, accessibility support, and visual styling modes.

### Quick Start

```tsx
import { OtpInputComponent } from '@syncfusion/ej2-react-inputs';
import * as React from 'react';
import './App.css';

function App() {
  return (
    <div id="container">
      <OtpInputComponent id="otpinput" />
    </div>
  );
}

export default App;
```

**CSS (src/App.css):**
```css
@import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-inputs/styles/tailwind3.css";
```

**Install:**
```bash
npm install @syncfusion/ej2-react-inputs --save
```

### Common Patterns

#### 6-digit OTP with verification callback

```tsx
import { OtpInputComponent, OtpChangedEventArgs } from '@syncfusion/ej2-react-inputs';
import * as React from 'react';

function App() {
  const handleValueChanged = (args: OtpChangedEventArgs) => {
    console.log('Complete OTP:', args.value);
    // Call your API verification here
  };

  return (
    <OtpInputComponent
      id="otpinput"
      length={6}
      autoFocus={true}
      valueChanged={handleValueChanged}
    />
  );
}
```

#### Password-masked OTP with error state

```tsx
import { OtpInputCompo

…(truncated)
