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

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

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

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Passing IControlProps to a field clear button

typescript