IControlProps

interface
Form & Input

Minimal prop shape for standalone icon-button controls (clear, visibility-toggle, counter actions). Requires an icon, a class string, and an accessible aria-label.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

icon
required
TIcon
Icon identifier — MDI name, URL, or component — shown inside the control button.
class
required
string
CSS class applied to the control root element.
'aria-label'
required
string

Usage

Examples

Ready-to-paste code snippets using this interface.

Passing IControlProps to a field clear button

typescript