html_compose.elements.input_element

  1from typing import Literal, Iterable, Mapping
  2
  3from ..attributes import GlobalAttrs, InputAttrs
  4from ..base_attribute import BaseAttribute
  5from ..base_element import BaseElement
  6from ..base_types import Resolvable, StrLike
  7
  8# This file is generated by tools/generate_elements.py
  9
 10
 11class input(BaseElement):  # type: ignore[misc]
 12    """
 13    The 'input' element.  
 14    Description: Form control  
 15    Categories: flow phrasing interactive* listed labelable submittable resettable form-associated palpable*  
 16    Parents: phrasing  
 17    Children: empty  
 18    Interface: HTMLInputElement  
 19    Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input  
 20    """  # fmt: skip
 21
 22    tag = "input"
 23    categories = [
 24        "flow",
 25        "phrasing",
 26        "interactive*",
 27        "listed",
 28        "labelable",
 29        "submittable",
 30        "resettable",
 31        "form-associated",
 32        "palpable*",
 33    ]
 34
 35    class hint(GlobalAttrs, InputAttrs):
 36        """
 37        Type hints for "input" attrs  
 38        This class holds functions which return BaseAttributes  
 39        Which you can add to your element attrs  
 40        """  # fmt: skip
 41
 42        pass
 43
 44    _ = hint
 45
 46    def __init__(
 47        self,
 48        attrs: Iterable[BaseAttribute]
 49        | Mapping[str, Resolvable]
 50        | Iterable[
 51            BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable]
 52        ]
 53        | None = None,
 54        id: StrLike | None = None,
 55        class_: Resolvable | None = None,
 56        accept: StrLike | None = None,
 57        alpha: bool | StrLike | None = None,
 58        alt: StrLike | None = None,
 59        autocomplete: StrLike | None = None,
 60        checked: bool | StrLike | None = None,
 61        colorspace: Literal["limited-srgb", "display-p3"]
 62        | StrLike
 63        | None = None,
 64        dirname: StrLike | None = None,
 65        disabled: bool | StrLike | None = None,
 66        form: StrLike | None = None,
 67        formaction: StrLike | None = None,
 68        formenctype: Literal[
 69            "application/x-www-form-urlencoded",
 70            "multipart/form-data",
 71            "text/plain",
 72        ]
 73        | StrLike
 74        | None = None,
 75        formmethod: Literal["GET", "POST", "dialog"] | StrLike | None = None,
 76        formnovalidate: bool | StrLike | None = None,
 77        formtarget: StrLike | None = None,
 78        height: int | StrLike | None = None,
 79        list: StrLike | None = None,
 80        max: StrLike | None = None,
 81        maxlength: int | StrLike | None = None,
 82        min: StrLike | None = None,
 83        minlength: int | StrLike | None = None,
 84        multiple: bool | StrLike | None = None,
 85        name: StrLike | None = None,
 86        pattern: StrLike | None = None,
 87        placeholder: StrLike | None = None,
 88        popovertarget: StrLike | None = None,
 89        popovertargetaction: Literal["toggle", "show", "hide"]
 90        | StrLike
 91        | None = None,
 92        readonly: bool | StrLike | None = None,
 93        required: bool | StrLike | None = None,
 94        size: StrLike | None = None,
 95        src: StrLike | None = None,
 96        step: float | StrLike | None = None,
 97        title: StrLike | None = None,
 98        type: StrLike | None = None,
 99        value: StrLike | None = None,
100        width: int | StrLike | None = None,
101        accesskey: Resolvable | StrLike | None = None,
102        autocapitalize: Literal[
103            "on", "off", "none", "sentences", "words", "characters"
104        ]
105        | StrLike
106        | None = None,
107        autocorrect: Literal["on", "off"] | StrLike | None = None,
108        autofocus: bool | StrLike | None = None,
109        contenteditable: Literal["true", "plaintext-only", "false"]
110        | StrLike
111        | None = None,
112        dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None,
113        draggable: Literal["true", "false"] | StrLike | None = None,
114        enterkeyhint: Literal[
115            "enter", "done", "go", "next", "previous", "search", "send"
116        ]
117        | StrLike
118        | None = None,
119        hidden: Literal["until-found", "hidden", ""] | StrLike | None = None,
120        inert: bool | StrLike | None = None,
121        inputmode: Literal[
122            "none",
123            "text",
124            "tel",
125            "email",
126            "url",
127            "numeric",
128            "decimal",
129            "search",
130        ]
131        | StrLike
132        | None = None,
133        is_: StrLike | None = None,
134        itemid: StrLike | None = None,
135        itemprop: Resolvable | StrLike | None = None,
136        itemref: Resolvable | StrLike | None = None,
137        itemscope: bool | StrLike | None = None,
138        itemtype: Resolvable | StrLike | None = None,
139        lang: StrLike | None = None,
140        nonce: StrLike | None = None,
141        onauxclick: StrLike | None = None,
142        onbeforeinput: StrLike | None = None,
143        onbeforematch: StrLike | None = None,
144        onbeforetoggle: StrLike | None = None,
145        onblur: StrLike | None = None,
146        oncancel: StrLike | None = None,
147        oncanplay: StrLike | None = None,
148        oncanplaythrough: StrLike | None = None,
149        onchange: StrLike | None = None,
150        onclick: StrLike | None = None,
151        onclose: StrLike | None = None,
152        oncontextlost: StrLike | None = None,
153        oncontextmenu: StrLike | None = None,
154        oncontextrestored: StrLike | None = None,
155        oncopy: StrLike | None = None,
156        oncuechange: StrLike | None = None,
157        oncut: StrLike | None = None,
158        ondblclick: StrLike | None = None,
159        ondrag: StrLike | None = None,
160        ondragend: StrLike | None = None,
161        ondragenter: StrLike | None = None,
162        ondragleave: StrLike | None = None,
163        ondragover: StrLike | None = None,
164        ondragstart: StrLike | None = None,
165        ondrop: StrLike | None = None,
166        ondurationchange: StrLike | None = None,
167        onemptied: StrLike | None = None,
168        onended: StrLike | None = None,
169        onerror: StrLike | None = None,
170        onfocus: StrLike | None = None,
171        onformdata: StrLike | None = None,
172        oninput: StrLike | None = None,
173        oninvalid: StrLike | None = None,
174        onkeydown: StrLike | None = None,
175        onkeypress: StrLike | None = None,
176        onkeyup: StrLike | None = None,
177        onload: StrLike | None = None,
178        onloadeddata: StrLike | None = None,
179        onloadedmetadata: StrLike | None = None,
180        onloadstart: StrLike | None = None,
181        onmousedown: StrLike | None = None,
182        onmouseenter: StrLike | None = None,
183        onmouseleave: StrLike | None = None,
184        onmousemove: StrLike | None = None,
185        onmouseout: StrLike | None = None,
186        onmouseover: StrLike | None = None,
187        onmouseup: StrLike | None = None,
188        onpaste: StrLike | None = None,
189        onpause: StrLike | None = None,
190        onplay: StrLike | None = None,
191        onplaying: StrLike | None = None,
192        onprogress: StrLike | None = None,
193        onratechange: StrLike | None = None,
194        onreset: StrLike | None = None,
195        onresize: StrLike | None = None,
196        onscroll: StrLike | None = None,
197        onscrollend: StrLike | None = None,
198        onsecuritypolicyviolation: StrLike | None = None,
199        onseeked: StrLike | None = None,
200        onseeking: StrLike | None = None,
201        onselect: StrLike | None = None,
202        onslotchange: StrLike | None = None,
203        onstalled: StrLike | None = None,
204        onsubmit: StrLike | None = None,
205        onsuspend: StrLike | None = None,
206        ontimeupdate: StrLike | None = None,
207        ontoggle: StrLike | None = None,
208        onvolumechange: StrLike | None = None,
209        onwaiting: StrLike | None = None,
210        onwheel: StrLike | None = None,
211        popover: Literal["auto", "manual"] | StrLike | None = None,
212        slot: StrLike | None = None,
213        spellcheck: Literal["true", "false", ""] | StrLike | None = None,
214        style: Resolvable | Mapping[StrLike, StrLike] | None = None,
215        tabindex: int | StrLike | None = None,
216        translate: Literal["yes", "no"] | StrLike | None = None,
217        writingsuggestions: Literal["true", "false", ""]
218        | StrLike
219        | None = None,
220        children: list | None = None,
221    ) -> None:
222        """
223        Initialize 'input' (Form control) element.  
224        Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
225
226        Args:
227            attrs: 
228                A list or dictionary of attributes for the element
229            
230            id:
231                The element's ID
232            
233            class_:
234                Classes to which the element belongs
235            
236            accept:
237                Hint for expected file type in file upload controls.  
238                Value hint: Set of comma-separated tokens* consisting of valid MIME type strings with no parameters or audio/*, video/*, or image/*
239            
240            alpha:
241                Allow the color's alpha component to be set
242            
243            alt:
244                Replacement text for use when images are not available
245            
246            autocomplete:
247                Hint for form autofill feature.  
248                Value hint: Autofill field name and related tokens*
249            
250            checked:
251                Whether the control is checked
252            
253            colorspace:
254                The color space of the serialized color
255            
256            dirname:
257                Name of form control to use for sending the element's directionality in form submission
258            
259            disabled:
260                Whether the form control is disabled
261            
262            form:
263                Associates the element with a form element.  
264                Value hint: ID*
265            
266            formaction:
267                URL to use for form submission.  
268                Value hint: Valid non-empty URL potentially surrounded by spaces
269            
270            formenctype:
271                Entry list encoding type to use for form submission
272            
273            formmethod:
274                Variant to use for form submission
275            
276            formnovalidate:
277                Bypass form control validation for form submission
278            
279            formtarget:
280                Navigable for form submission.  
281                Value hint: Valid navigable target name or keyword
282            
283            height:
284                Vertical dimension
285            
286            list:
287                List of autocomplete options.  
288                Value hint: ID*
289            
290            max:
291                Maximum value.  
292                Value hint: Varies*
293            
294            maxlength:
295                Maximum length of value
296            
297            min:
298                Minimum value.  
299                Value hint: Varies*
300            
301            minlength:
302                Minimum length of value
303            
304            multiple:
305                Whether to allow multiple values
306            
307            name:
308                Name of the element to use for form submission and in the form.elements API
309            
310            pattern:
311                Pattern to be matched by the form control's value.  
312                Value hint: Regular expression matching the JavaScript Pattern production
313            
314            placeholder:
315                User-visible label to be placed within the form control
316            
317            popovertarget:
318                Targets a popover element to toggle, show, or hide.  
319                Value hint: ID*
320            
321            popovertargetaction:
322                Indicates whether a targeted popover element is to be toggled, shown, or hidden
323            
324            readonly:
325                Whether to allow the value to be edited by the user
326            
327            required:
328                Whether the control is required for form submission
329            
330            size:
331                Size of the control.  
332                Value hint: Valid non-negative integer greater than zero
333            
334            src:
335                Address of the resource.  
336                Value hint: Valid non-empty URL potentially surrounded by spaces
337            
338            step:
339                Granularity to be matched by the form control's value
340            
341            title:
342                Description of pattern (when used with pattern attribute)
343            
344            type:
345                Type of form control.  
346                Value hint: input type keyword
347            
348            value:
349                Value of the form control.  
350                Value hint: Varies*
351            
352            width:
353                Horizontal dimension
354            
355            accesskey:
356                Keyboard shortcut to activate or focus element
357            
358            autocapitalize:
359                Recommended autocapitalization behavior (for supported input methods)
360            
361            autocorrect:
362                Recommended autocorrection behavior (for supported input methods)
363            
364            autofocus:
365                Automatically focus the element when the page is loaded
366            
367            contenteditable:
368                Whether the element is editable
369            
370            dir:
371                The text directionality of the element
372            
373            draggable:
374                Whether the element is draggable
375            
376            enterkeyhint:
377                Hint for selecting an enter key action
378            
379            hidden:
380                Whether the element is relevant
381            
382            inert:
383                Whether the element is inert.
384            
385            inputmode:
386                Hint for selecting an input modality
387            
388            is_:
389                Creates a customized built-in element.  
390                Value hint: Valid custom element name of a defined customized built-in element
391            
392            itemid:
393                Global identifier for a microdata item.  
394                Value hint: Valid URL potentially surrounded by spaces
395            
396            itemprop:
397                Property names of a microdata item
398            
399            itemref:
400                Referenced elements
401            
402            itemscope:
403                Introduces a microdata item
404            
405            itemtype:
406                Item types of a microdata item
407            
408            lang:
409                Language of the element.  
410                Value hint: Valid BCP 47 language tag or the empty string
411            
412            nonce:
413                Cryptographic nonce used in Content Security Policy checks [CSP]
414            
415            onauxclick:
416                auxclick event handler.  
417                Value hint: Event handler content attribute
418            
419            onbeforeinput:
420                beforeinput event handler.  
421                Value hint: Event handler content attribute
422            
423            onbeforematch:
424                beforematch event handler.  
425                Value hint: Event handler content attribute
426            
427            onbeforetoggle:
428                beforetoggle event handler.  
429                Value hint: Event handler content attribute
430            
431            onblur:
432                blur event handler.  
433                Value hint: Event handler content attribute
434            
435            oncancel:
436                cancel event handler.  
437                Value hint: Event handler content attribute
438            
439            oncanplay:
440                canplay event handler.  
441                Value hint: Event handler content attribute
442            
443            oncanplaythrough:
444                canplaythrough event handler.  
445                Value hint: Event handler content attribute
446            
447            onchange:
448                change event handler.  
449                Value hint: Event handler content attribute
450            
451            onclick:
452                click event handler.  
453                Value hint: Event handler content attribute
454            
455            onclose:
456                close event handler.  
457                Value hint: Event handler content attribute
458            
459            oncontextlost:
460                contextlost event handler.  
461                Value hint: Event handler content attribute
462            
463            oncontextmenu:
464                contextmenu event handler.  
465                Value hint: Event handler content attribute
466            
467            oncontextrestored:
468                contextrestored event handler.  
469                Value hint: Event handler content attribute
470            
471            oncopy:
472                copy event handler.  
473                Value hint: Event handler content attribute
474            
475            oncuechange:
476                cuechange event handler.  
477                Value hint: Event handler content attribute
478            
479            oncut:
480                cut event handler.  
481                Value hint: Event handler content attribute
482            
483            ondblclick:
484                dblclick event handler.  
485                Value hint: Event handler content attribute
486            
487            ondrag:
488                drag event handler.  
489                Value hint: Event handler content attribute
490            
491            ondragend:
492                dragend event handler.  
493                Value hint: Event handler content attribute
494            
495            ondragenter:
496                dragenter event handler.  
497                Value hint: Event handler content attribute
498            
499            ondragleave:
500                dragleave event handler.  
501                Value hint: Event handler content attribute
502            
503            ondragover:
504                dragover event handler.  
505                Value hint: Event handler content attribute
506            
507            ondragstart:
508                dragstart event handler.  
509                Value hint: Event handler content attribute
510            
511            ondrop:
512                drop event handler.  
513                Value hint: Event handler content attribute
514            
515            ondurationchange:
516                durationchange event handler.  
517                Value hint: Event handler content attribute
518            
519            onemptied:
520                emptied event handler.  
521                Value hint: Event handler content attribute
522            
523            onended:
524                ended event handler.  
525                Value hint: Event handler content attribute
526            
527            onerror:
528                error event handler.  
529                Value hint: Event handler content attribute
530            
531            onfocus:
532                focus event handler.  
533                Value hint: Event handler content attribute
534            
535            onformdata:
536                formdata event handler.  
537                Value hint: Event handler content attribute
538            
539            oninput:
540                input event handler.  
541                Value hint: Event handler content attribute
542            
543            oninvalid:
544                invalid event handler.  
545                Value hint: Event handler content attribute
546            
547            onkeydown:
548                keydown event handler.  
549                Value hint: Event handler content attribute
550            
551            onkeypress:
552                keypress event handler.  
553                Value hint: Event handler content attribute
554            
555            onkeyup:
556                keyup event handler.  
557                Value hint: Event handler content attribute
558            
559            onload:
560                load event handler.  
561                Value hint: Event handler content attribute
562            
563            onloadeddata:
564                loadeddata event handler.  
565                Value hint: Event handler content attribute
566            
567            onloadedmetadata:
568                loadedmetadata event handler.  
569                Value hint: Event handler content attribute
570            
571            onloadstart:
572                loadstart event handler.  
573                Value hint: Event handler content attribute
574            
575            onmousedown:
576                mousedown event handler.  
577                Value hint: Event handler content attribute
578            
579            onmouseenter:
580                mouseenter event handler.  
581                Value hint: Event handler content attribute
582            
583            onmouseleave:
584                mouseleave event handler.  
585                Value hint: Event handler content attribute
586            
587            onmousemove:
588                mousemove event handler.  
589                Value hint: Event handler content attribute
590            
591            onmouseout:
592                mouseout event handler.  
593                Value hint: Event handler content attribute
594            
595            onmouseover:
596                mouseover event handler.  
597                Value hint: Event handler content attribute
598            
599            onmouseup:
600                mouseup event handler.  
601                Value hint: Event handler content attribute
602            
603            onpaste:
604                paste event handler.  
605                Value hint: Event handler content attribute
606            
607            onpause:
608                pause event handler.  
609                Value hint: Event handler content attribute
610            
611            onplay:
612                play event handler.  
613                Value hint: Event handler content attribute
614            
615            onplaying:
616                playing event handler.  
617                Value hint: Event handler content attribute
618            
619            onprogress:
620                progress event handler.  
621                Value hint: Event handler content attribute
622            
623            onratechange:
624                ratechange event handler.  
625                Value hint: Event handler content attribute
626            
627            onreset:
628                reset event handler.  
629                Value hint: Event handler content attribute
630            
631            onresize:
632                resize event handler.  
633                Value hint: Event handler content attribute
634            
635            onscroll:
636                scroll event handler.  
637                Value hint: Event handler content attribute
638            
639            onscrollend:
640                scrollend event handler.  
641                Value hint: Event handler content attribute
642            
643            onsecuritypolicyviolation:
644                securitypolicyviolation event handler.  
645                Value hint: Event handler content attribute
646            
647            onseeked:
648                seeked event handler.  
649                Value hint: Event handler content attribute
650            
651            onseeking:
652                seeking event handler.  
653                Value hint: Event handler content attribute
654            
655            onselect:
656                select event handler.  
657                Value hint: Event handler content attribute
658            
659            onslotchange:
660                slotchange event handler.  
661                Value hint: Event handler content attribute
662            
663            onstalled:
664                stalled event handler.  
665                Value hint: Event handler content attribute
666            
667            onsubmit:
668                submit event handler.  
669                Value hint: Event handler content attribute
670            
671            onsuspend:
672                suspend event handler.  
673                Value hint: Event handler content attribute
674            
675            ontimeupdate:
676                timeupdate event handler.  
677                Value hint: Event handler content attribute
678            
679            ontoggle:
680                toggle event handler.  
681                Value hint: Event handler content attribute
682            
683            onvolumechange:
684                volumechange event handler.  
685                Value hint: Event handler content attribute
686            
687            onwaiting:
688                waiting event handler.  
689                Value hint: Event handler content attribute
690            
691            onwheel:
692                wheel event handler.  
693                Value hint: Event handler content attribute
694            
695            popover:
696                Makes the element a popover element
697            
698            slot:
699                The element's desired slot
700            
701            spellcheck:
702                Whether the element is to have its spelling and grammar checked
703            
704            style:
705                Presentational and formatting instructions.  
706                Value hint: CSS declarations*
707            
708            tabindex:
709                Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation
710            
711            translate:
712                Whether the element is to be translated when the page is localized
713            
714            writingsuggestions:
715                Whether the element can offer writing suggestions or not.
716            
717        """  # fmt: skip
718        super().__init__(
719            "input", void_element=True, attrs=attrs, children=children
720        )
721        if not (id is None or id is False):
722            self._process_attr("id", id)
723        if not (class_ is None or class_ is False):
724            self._process_attr("class", class_)
725        if not (accept is None or accept is False):
726            self._process_attr("accept", accept)
727        if not (alpha is None or alpha is False):
728            self._process_attr("alpha", alpha)
729        if not (alt is None or alt is False):
730            self._process_attr("alt", alt)
731        if not (autocomplete is None or autocomplete is False):
732            self._process_attr("autocomplete", autocomplete)
733        if not (checked is None or checked is False):
734            self._process_attr("checked", checked)
735        if not (colorspace is None or colorspace is False):
736            self._process_attr("colorspace", colorspace)
737        if not (dirname is None or dirname is False):
738            self._process_attr("dirname", dirname)
739        if not (disabled is None or disabled is False):
740            self._process_attr("disabled", disabled)
741        if not (form is None or form is False):
742            self._process_attr("form", form)
743        if not (formaction is None or formaction is False):
744            self._process_attr("formaction", formaction)
745        if not (formenctype is None or formenctype is False):
746            self._process_attr("formenctype", formenctype)
747        if not (formmethod is None or formmethod is False):
748            self._process_attr("formmethod", formmethod)
749        if not (formnovalidate is None or formnovalidate is False):
750            self._process_attr("formnovalidate", formnovalidate)
751        if not (formtarget is None or formtarget is False):
752            self._process_attr("formtarget", formtarget)
753        if not (height is None or height is False):
754            self._process_attr("height", height)
755        if not (list is None or list is False):
756            self._process_attr("list", list)
757        if not (max is None or max is False):
758            self._process_attr("max", max)
759        if not (maxlength is None or maxlength is False):
760            self._process_attr("maxlength", maxlength)
761        if not (min is None or min is False):
762            self._process_attr("min", min)
763        if not (minlength is None or minlength is False):
764            self._process_attr("minlength", minlength)
765        if not (multiple is None or multiple is False):
766            self._process_attr("multiple", multiple)
767        if not (name is None or name is False):
768            self._process_attr("name", name)
769        if not (pattern is None or pattern is False):
770            self._process_attr("pattern", pattern)
771        if not (placeholder is None or placeholder is False):
772            self._process_attr("placeholder", placeholder)
773        if not (popovertarget is None or popovertarget is False):
774            self._process_attr("popovertarget", popovertarget)
775        if not (popovertargetaction is None or popovertargetaction is False):
776            self._process_attr("popovertargetaction", popovertargetaction)
777        if not (readonly is None or readonly is False):
778            self._process_attr("readonly", readonly)
779        if not (required is None or required is False):
780            self._process_attr("required", required)
781        if not (size is None or size is False):
782            self._process_attr("size", size)
783        if not (src is None or src is False):
784            self._process_attr("src", src)
785        if not (step is None or step is False):
786            self._process_attr("step", step)
787        if not (title is None or title is False):
788            self._process_attr("title", title)
789        if not (type is None or type is False):
790            self._process_attr("type", type)
791        if not (value is None or value is False):
792            self._process_attr("value", value)
793        if not (width is None or width is False):
794            self._process_attr("width", width)
795        if not (accesskey is None or accesskey is False):
796            self._process_attr("accesskey", accesskey)
797        if not (autocapitalize is None or autocapitalize is False):
798            self._process_attr("autocapitalize", autocapitalize)
799        if not (autocorrect is None or autocorrect is False):
800            self._process_attr("autocorrect", autocorrect)
801        if not (autofocus is None or autofocus is False):
802            self._process_attr("autofocus", autofocus)
803        if not (contenteditable is None or contenteditable is False):
804            self._process_attr("contenteditable", contenteditable)
805        if not (dir is None or dir is False):
806            self._process_attr("dir", dir)
807        if not (draggable is None or draggable is False):
808            self._process_attr("draggable", draggable)
809        if not (enterkeyhint is None or enterkeyhint is False):
810            self._process_attr("enterkeyhint", enterkeyhint)
811        if not (hidden is None or hidden is False):
812            self._process_attr("hidden", hidden)
813        if not (inert is None or inert is False):
814            self._process_attr("inert", inert)
815        if not (inputmode is None or inputmode is False):
816            self._process_attr("inputmode", inputmode)
817        if not (is_ is None or is_ is False):
818            self._process_attr("is", is_)
819        if not (itemid is None or itemid is False):
820            self._process_attr("itemid", itemid)
821        if not (itemprop is None or itemprop is False):
822            self._process_attr("itemprop", itemprop)
823        if not (itemref is None or itemref is False):
824            self._process_attr("itemref", itemref)
825        if not (itemscope is None or itemscope is False):
826            self._process_attr("itemscope", itemscope)
827        if not (itemtype is None or itemtype is False):
828            self._process_attr("itemtype", itemtype)
829        if not (lang is None or lang is False):
830            self._process_attr("lang", lang)
831        if not (nonce is None or nonce is False):
832            self._process_attr("nonce", nonce)
833        if not (onauxclick is None or onauxclick is False):
834            self._process_attr("onauxclick", onauxclick)
835        if not (onbeforeinput is None or onbeforeinput is False):
836            self._process_attr("onbeforeinput", onbeforeinput)
837        if not (onbeforematch is None or onbeforematch is False):
838            self._process_attr("onbeforematch", onbeforematch)
839        if not (onbeforetoggle is None or onbeforetoggle is False):
840            self._process_attr("onbeforetoggle", onbeforetoggle)
841        if not (onblur is None or onblur is False):
842            self._process_attr("onblur", onblur)
843        if not (oncancel is None or oncancel is False):
844            self._process_attr("oncancel", oncancel)
845        if not (oncanplay is None or oncanplay is False):
846            self._process_attr("oncanplay", oncanplay)
847        if not (oncanplaythrough is None or oncanplaythrough is False):
848            self._process_attr("oncanplaythrough", oncanplaythrough)
849        if not (onchange is None or onchange is False):
850            self._process_attr("onchange", onchange)
851        if not (onclick is None or onclick is False):
852            self._process_attr("onclick", onclick)
853        if not (onclose is None or onclose is False):
854            self._process_attr("onclose", onclose)
855        if not (oncontextlost is None or oncontextlost is False):
856            self._process_attr("oncontextlost", oncontextlost)
857        if not (oncontextmenu is None or oncontextmenu is False):
858            self._process_attr("oncontextmenu", oncontextmenu)
859        if not (oncontextrestored is None or oncontextrestored is False):
860            self._process_attr("oncontextrestored", oncontextrestored)
861        if not (oncopy is None or oncopy is False):
862            self._process_attr("oncopy", oncopy)
863        if not (oncuechange is None or oncuechange is False):
864            self._process_attr("oncuechange", oncuechange)
865        if not (oncut is None or oncut is False):
866            self._process_attr("oncut", oncut)
867        if not (ondblclick is None or ondblclick is False):
868            self._process_attr("ondblclick", ondblclick)
869        if not (ondrag is None or ondrag is False):
870            self._process_attr("ondrag", ondrag)
871        if not (ondragend is None or ondragend is False):
872            self._process_attr("ondragend", ondragend)
873        if not (ondragenter is None or ondragenter is False):
874            self._process_attr("ondragenter", ondragenter)
875        if not (ondragleave is None or ondragleave is False):
876            self._process_attr("ondragleave", ondragleave)
877        if not (ondragover is None or ondragover is False):
878            self._process_attr("ondragover", ondragover)
879        if not (ondragstart is None or ondragstart is False):
880            self._process_attr("ondragstart", ondragstart)
881        if not (ondrop is None or ondrop is False):
882            self._process_attr("ondrop", ondrop)
883        if not (ondurationchange is None or ondurationchange is False):
884            self._process_attr("ondurationchange", ondurationchange)
885        if not (onemptied is None or onemptied is False):
886            self._process_attr("onemptied", onemptied)
887        if not (onended is None or onended is False):
888            self._process_attr("onended", onended)
889        if not (onerror is None or onerror is False):
890            self._process_attr("onerror", onerror)
891        if not (onfocus is None or onfocus is False):
892            self._process_attr("onfocus", onfocus)
893        if not (onformdata is None or onformdata is False):
894            self._process_attr("onformdata", onformdata)
895        if not (oninput is None or oninput is False):
896            self._process_attr("oninput", oninput)
897        if not (oninvalid is None or oninvalid is False):
898            self._process_attr("oninvalid", oninvalid)
899        if not (onkeydown is None or onkeydown is False):
900            self._process_attr("onkeydown", onkeydown)
901        if not (onkeypress is None or onkeypress is False):
902            self._process_attr("onkeypress", onkeypress)
903        if not (onkeyup is None or onkeyup is False):
904            self._process_attr("onkeyup", onkeyup)
905        if not (onload is None or onload is False):
906            self._process_attr("onload", onload)
907        if not (onloadeddata is None or onloadeddata is False):
908            self._process_attr("onloadeddata", onloadeddata)
909        if not (onloadedmetadata is None or onloadedmetadata is False):
910            self._process_attr("onloadedmetadata", onloadedmetadata)
911        if not (onloadstart is None or onloadstart is False):
912            self._process_attr("onloadstart", onloadstart)
913        if not (onmousedown is None or onmousedown is False):
914            self._process_attr("onmousedown", onmousedown)
915        if not (onmouseenter is None or onmouseenter is False):
916            self._process_attr("onmouseenter", onmouseenter)
917        if not (onmouseleave is None or onmouseleave is False):
918            self._process_attr("onmouseleave", onmouseleave)
919        if not (onmousemove is None or onmousemove is False):
920            self._process_attr("onmousemove", onmousemove)
921        if not (onmouseout is None or onmouseout is False):
922            self._process_attr("onmouseout", onmouseout)
923        if not (onmouseover is None or onmouseover is False):
924            self._process_attr("onmouseover", onmouseover)
925        if not (onmouseup is None or onmouseup is False):
926            self._process_attr("onmouseup", onmouseup)
927        if not (onpaste is None or onpaste is False):
928            self._process_attr("onpaste", onpaste)
929        if not (onpause is None or onpause is False):
930            self._process_attr("onpause", onpause)
931        if not (onplay is None or onplay is False):
932            self._process_attr("onplay", onplay)
933        if not (onplaying is None or onplaying is False):
934            self._process_attr("onplaying", onplaying)
935        if not (onprogress is None or onprogress is False):
936            self._process_attr("onprogress", onprogress)
937        if not (onratechange is None or onratechange is False):
938            self._process_attr("onratechange", onratechange)
939        if not (onreset is None or onreset is False):
940            self._process_attr("onreset", onreset)
941        if not (onresize is None or onresize is False):
942            self._process_attr("onresize", onresize)
943        if not (onscroll is None or onscroll is False):
944            self._process_attr("onscroll", onscroll)
945        if not (onscrollend is None or onscrollend is False):
946            self._process_attr("onscrollend", onscrollend)
947        if not (
948            onsecuritypolicyviolation is None
949            or onsecuritypolicyviolation is False
950        ):
951            self._process_attr(
952                "onsecuritypolicyviolation", onsecuritypolicyviolation
953            )
954        if not (onseeked is None or onseeked is False):
955            self._process_attr("onseeked", onseeked)
956        if not (onseeking is None or onseeking is False):
957            self._process_attr("onseeking", onseeking)
958        if not (onselect is None or onselect is False):
959            self._process_attr("onselect", onselect)
960        if not (onslotchange is None or onslotchange is False):
961            self._process_attr("onslotchange", onslotchange)
962        if not (onstalled is None or onstalled is False):
963            self._process_attr("onstalled", onstalled)
964        if not (onsubmit is None or onsubmit is False):
965            self._process_attr("onsubmit", onsubmit)
966        if not (onsuspend is None or onsuspend is False):
967            self._process_attr("onsuspend", onsuspend)
968        if not (ontimeupdate is None or ontimeupdate is False):
969            self._process_attr("ontimeupdate", ontimeupdate)
970        if not (ontoggle is None or ontoggle is False):
971            self._process_attr("ontoggle", ontoggle)
972        if not (onvolumechange is None or onvolumechange is False):
973            self._process_attr("onvolumechange", onvolumechange)
974        if not (onwaiting is None or onwaiting is False):
975            self._process_attr("onwaiting", onwaiting)
976        if not (onwheel is None or onwheel is False):
977            self._process_attr("onwheel", onwheel)
978        if not (popover is None or popover is False):
979            self._process_attr("popover", popover)
980        if not (slot is None or slot is False):
981            self._process_attr("slot", slot)
982        if not (spellcheck is None or spellcheck is False):
983            self._process_attr("spellcheck", spellcheck)
984        if not (style is None or style is False):
985            self._process_attr("style", style)
986        if not (tabindex is None or tabindex is False):
987            self._process_attr("tabindex", tabindex)
988        if not (translate is None or translate is False):
989            self._process_attr("translate", translate)
990        if not (writingsuggestions is None or writingsuggestions is False):
991            self._process_attr("writingsuggestions", writingsuggestions)
class input(html_compose.base_element.BaseElement):
 12class input(BaseElement):  # type: ignore[misc]
 13    """
 14    The 'input' element.  
 15    Description: Form control  
 16    Categories: flow phrasing interactive* listed labelable submittable resettable form-associated palpable*  
 17    Parents: phrasing  
 18    Children: empty  
 19    Interface: HTMLInputElement  
 20    Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input  
 21    """  # fmt: skip
 22
 23    tag = "input"
 24    categories = [
 25        "flow",
 26        "phrasing",
 27        "interactive*",
 28        "listed",
 29        "labelable",
 30        "submittable",
 31        "resettable",
 32        "form-associated",
 33        "palpable*",
 34    ]
 35
 36    class hint(GlobalAttrs, InputAttrs):
 37        """
 38        Type hints for "input" attrs  
 39        This class holds functions which return BaseAttributes  
 40        Which you can add to your element attrs  
 41        """  # fmt: skip
 42
 43        pass
 44
 45    _ = hint
 46
 47    def __init__(
 48        self,
 49        attrs: Iterable[BaseAttribute]
 50        | Mapping[str, Resolvable]
 51        | Iterable[
 52            BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable]
 53        ]
 54        | None = None,
 55        id: StrLike | None = None,
 56        class_: Resolvable | None = None,
 57        accept: StrLike | None = None,
 58        alpha: bool | StrLike | None = None,
 59        alt: StrLike | None = None,
 60        autocomplete: StrLike | None = None,
 61        checked: bool | StrLike | None = None,
 62        colorspace: Literal["limited-srgb", "display-p3"]
 63        | StrLike
 64        | None = None,
 65        dirname: StrLike | None = None,
 66        disabled: bool | StrLike | None = None,
 67        form: StrLike | None = None,
 68        formaction: StrLike | None = None,
 69        formenctype: Literal[
 70            "application/x-www-form-urlencoded",
 71            "multipart/form-data",
 72            "text/plain",
 73        ]
 74        | StrLike
 75        | None = None,
 76        formmethod: Literal["GET", "POST", "dialog"] | StrLike | None = None,
 77        formnovalidate: bool | StrLike | None = None,
 78        formtarget: StrLike | None = None,
 79        height: int | StrLike | None = None,
 80        list: StrLike | None = None,
 81        max: StrLike | None = None,
 82        maxlength: int | StrLike | None = None,
 83        min: StrLike | None = None,
 84        minlength: int | StrLike | None = None,
 85        multiple: bool | StrLike | None = None,
 86        name: StrLike | None = None,
 87        pattern: StrLike | None = None,
 88        placeholder: StrLike | None = None,
 89        popovertarget: StrLike | None = None,
 90        popovertargetaction: Literal["toggle", "show", "hide"]
 91        | StrLike
 92        | None = None,
 93        readonly: bool | StrLike | None = None,
 94        required: bool | StrLike | None = None,
 95        size: StrLike | None = None,
 96        src: StrLike | None = None,
 97        step: float | StrLike | None = None,
 98        title: StrLike | None = None,
 99        type: StrLike | None = None,
100        value: StrLike | None = None,
101        width: int | StrLike | None = None,
102        accesskey: Resolvable | StrLike | None = None,
103        autocapitalize: Literal[
104            "on", "off", "none", "sentences", "words", "characters"
105        ]
106        | StrLike
107        | None = None,
108        autocorrect: Literal["on", "off"] | StrLike | None = None,
109        autofocus: bool | StrLike | None = None,
110        contenteditable: Literal["true", "plaintext-only", "false"]
111        | StrLike
112        | None = None,
113        dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None,
114        draggable: Literal["true", "false"] | StrLike | None = None,
115        enterkeyhint: Literal[
116            "enter", "done", "go", "next", "previous", "search", "send"
117        ]
118        | StrLike
119        | None = None,
120        hidden: Literal["until-found", "hidden", ""] | StrLike | None = None,
121        inert: bool | StrLike | None = None,
122        inputmode: Literal[
123            "none",
124            "text",
125            "tel",
126            "email",
127            "url",
128            "numeric",
129            "decimal",
130            "search",
131        ]
132        | StrLike
133        | None = None,
134        is_: StrLike | None = None,
135        itemid: StrLike | None = None,
136        itemprop: Resolvable | StrLike | None = None,
137        itemref: Resolvable | StrLike | None = None,
138        itemscope: bool | StrLike | None = None,
139        itemtype: Resolvable | StrLike | None = None,
140        lang: StrLike | None = None,
141        nonce: StrLike | None = None,
142        onauxclick: StrLike | None = None,
143        onbeforeinput: StrLike | None = None,
144        onbeforematch: StrLike | None = None,
145        onbeforetoggle: StrLike | None = None,
146        onblur: StrLike | None = None,
147        oncancel: StrLike | None = None,
148        oncanplay: StrLike | None = None,
149        oncanplaythrough: StrLike | None = None,
150        onchange: StrLike | None = None,
151        onclick: StrLike | None = None,
152        onclose: StrLike | None = None,
153        oncontextlost: StrLike | None = None,
154        oncontextmenu: StrLike | None = None,
155        oncontextrestored: StrLike | None = None,
156        oncopy: StrLike | None = None,
157        oncuechange: StrLike | None = None,
158        oncut: StrLike | None = None,
159        ondblclick: StrLike | None = None,
160        ondrag: StrLike | None = None,
161        ondragend: StrLike | None = None,
162        ondragenter: StrLike | None = None,
163        ondragleave: StrLike | None = None,
164        ondragover: StrLike | None = None,
165        ondragstart: StrLike | None = None,
166        ondrop: StrLike | None = None,
167        ondurationchange: StrLike | None = None,
168        onemptied: StrLike | None = None,
169        onended: StrLike | None = None,
170        onerror: StrLike | None = None,
171        onfocus: StrLike | None = None,
172        onformdata: StrLike | None = None,
173        oninput: StrLike | None = None,
174        oninvalid: StrLike | None = None,
175        onkeydown: StrLike | None = None,
176        onkeypress: StrLike | None = None,
177        onkeyup: StrLike | None = None,
178        onload: StrLike | None = None,
179        onloadeddata: StrLike | None = None,
180        onloadedmetadata: StrLike | None = None,
181        onloadstart: StrLike | None = None,
182        onmousedown: StrLike | None = None,
183        onmouseenter: StrLike | None = None,
184        onmouseleave: StrLike | None = None,
185        onmousemove: StrLike | None = None,
186        onmouseout: StrLike | None = None,
187        onmouseover: StrLike | None = None,
188        onmouseup: StrLike | None = None,
189        onpaste: StrLike | None = None,
190        onpause: StrLike | None = None,
191        onplay: StrLike | None = None,
192        onplaying: StrLike | None = None,
193        onprogress: StrLike | None = None,
194        onratechange: StrLike | None = None,
195        onreset: StrLike | None = None,
196        onresize: StrLike | None = None,
197        onscroll: StrLike | None = None,
198        onscrollend: StrLike | None = None,
199        onsecuritypolicyviolation: StrLike | None = None,
200        onseeked: StrLike | None = None,
201        onseeking: StrLike | None = None,
202        onselect: StrLike | None = None,
203        onslotchange: StrLike | None = None,
204        onstalled: StrLike | None = None,
205        onsubmit: StrLike | None = None,
206        onsuspend: StrLike | None = None,
207        ontimeupdate: StrLike | None = None,
208        ontoggle: StrLike | None = None,
209        onvolumechange: StrLike | None = None,
210        onwaiting: StrLike | None = None,
211        onwheel: StrLike | None = None,
212        popover: Literal["auto", "manual"] | StrLike | None = None,
213        slot: StrLike | None = None,
214        spellcheck: Literal["true", "false", ""] | StrLike | None = None,
215        style: Resolvable | Mapping[StrLike, StrLike] | None = None,
216        tabindex: int | StrLike | None = None,
217        translate: Literal["yes", "no"] | StrLike | None = None,
218        writingsuggestions: Literal["true", "false", ""]
219        | StrLike
220        | None = None,
221        children: list | None = None,
222    ) -> None:
223        """
224        Initialize 'input' (Form control) element.  
225        Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
226
227        Args:
228            attrs: 
229                A list or dictionary of attributes for the element
230            
231            id:
232                The element's ID
233            
234            class_:
235                Classes to which the element belongs
236            
237            accept:
238                Hint for expected file type in file upload controls.  
239                Value hint: Set of comma-separated tokens* consisting of valid MIME type strings with no parameters or audio/*, video/*, or image/*
240            
241            alpha:
242                Allow the color's alpha component to be set
243            
244            alt:
245                Replacement text for use when images are not available
246            
247            autocomplete:
248                Hint for form autofill feature.  
249                Value hint: Autofill field name and related tokens*
250            
251            checked:
252                Whether the control is checked
253            
254            colorspace:
255                The color space of the serialized color
256            
257            dirname:
258                Name of form control to use for sending the element's directionality in form submission
259            
260            disabled:
261                Whether the form control is disabled
262            
263            form:
264                Associates the element with a form element.  
265                Value hint: ID*
266            
267            formaction:
268                URL to use for form submission.  
269                Value hint: Valid non-empty URL potentially surrounded by spaces
270            
271            formenctype:
272                Entry list encoding type to use for form submission
273            
274            formmethod:
275                Variant to use for form submission
276            
277            formnovalidate:
278                Bypass form control validation for form submission
279            
280            formtarget:
281                Navigable for form submission.  
282                Value hint: Valid navigable target name or keyword
283            
284            height:
285                Vertical dimension
286            
287            list:
288                List of autocomplete options.  
289                Value hint: ID*
290            
291            max:
292                Maximum value.  
293                Value hint: Varies*
294            
295            maxlength:
296                Maximum length of value
297            
298            min:
299                Minimum value.  
300                Value hint: Varies*
301            
302            minlength:
303                Minimum length of value
304            
305            multiple:
306                Whether to allow multiple values
307            
308            name:
309                Name of the element to use for form submission and in the form.elements API
310            
311            pattern:
312                Pattern to be matched by the form control's value.  
313                Value hint: Regular expression matching the JavaScript Pattern production
314            
315            placeholder:
316                User-visible label to be placed within the form control
317            
318            popovertarget:
319                Targets a popover element to toggle, show, or hide.  
320                Value hint: ID*
321            
322            popovertargetaction:
323                Indicates whether a targeted popover element is to be toggled, shown, or hidden
324            
325            readonly:
326                Whether to allow the value to be edited by the user
327            
328            required:
329                Whether the control is required for form submission
330            
331            size:
332                Size of the control.  
333                Value hint: Valid non-negative integer greater than zero
334            
335            src:
336                Address of the resource.  
337                Value hint: Valid non-empty URL potentially surrounded by spaces
338            
339            step:
340                Granularity to be matched by the form control's value
341            
342            title:
343                Description of pattern (when used with pattern attribute)
344            
345            type:
346                Type of form control.  
347                Value hint: input type keyword
348            
349            value:
350                Value of the form control.  
351                Value hint: Varies*
352            
353            width:
354                Horizontal dimension
355            
356            accesskey:
357                Keyboard shortcut to activate or focus element
358            
359            autocapitalize:
360                Recommended autocapitalization behavior (for supported input methods)
361            
362            autocorrect:
363                Recommended autocorrection behavior (for supported input methods)
364            
365            autofocus:
366                Automatically focus the element when the page is loaded
367            
368            contenteditable:
369                Whether the element is editable
370            
371            dir:
372                The text directionality of the element
373            
374            draggable:
375                Whether the element is draggable
376            
377            enterkeyhint:
378                Hint for selecting an enter key action
379            
380            hidden:
381                Whether the element is relevant
382            
383            inert:
384                Whether the element is inert.
385            
386            inputmode:
387                Hint for selecting an input modality
388            
389            is_:
390                Creates a customized built-in element.  
391                Value hint: Valid custom element name of a defined customized built-in element
392            
393            itemid:
394                Global identifier for a microdata item.  
395                Value hint: Valid URL potentially surrounded by spaces
396            
397            itemprop:
398                Property names of a microdata item
399            
400            itemref:
401                Referenced elements
402            
403            itemscope:
404                Introduces a microdata item
405            
406            itemtype:
407                Item types of a microdata item
408            
409            lang:
410                Language of the element.  
411                Value hint: Valid BCP 47 language tag or the empty string
412            
413            nonce:
414                Cryptographic nonce used in Content Security Policy checks [CSP]
415            
416            onauxclick:
417                auxclick event handler.  
418                Value hint: Event handler content attribute
419            
420            onbeforeinput:
421                beforeinput event handler.  
422                Value hint: Event handler content attribute
423            
424            onbeforematch:
425                beforematch event handler.  
426                Value hint: Event handler content attribute
427            
428            onbeforetoggle:
429                beforetoggle event handler.  
430                Value hint: Event handler content attribute
431            
432            onblur:
433                blur event handler.  
434                Value hint: Event handler content attribute
435            
436            oncancel:
437                cancel event handler.  
438                Value hint: Event handler content attribute
439            
440            oncanplay:
441                canplay event handler.  
442                Value hint: Event handler content attribute
443            
444            oncanplaythrough:
445                canplaythrough event handler.  
446                Value hint: Event handler content attribute
447            
448            onchange:
449                change event handler.  
450                Value hint: Event handler content attribute
451            
452            onclick:
453                click event handler.  
454                Value hint: Event handler content attribute
455            
456            onclose:
457                close event handler.  
458                Value hint: Event handler content attribute
459            
460            oncontextlost:
461                contextlost event handler.  
462                Value hint: Event handler content attribute
463            
464            oncontextmenu:
465                contextmenu event handler.  
466                Value hint: Event handler content attribute
467            
468            oncontextrestored:
469                contextrestored event handler.  
470                Value hint: Event handler content attribute
471            
472            oncopy:
473                copy event handler.  
474                Value hint: Event handler content attribute
475            
476            oncuechange:
477                cuechange event handler.  
478                Value hint: Event handler content attribute
479            
480            oncut:
481                cut event handler.  
482                Value hint: Event handler content attribute
483            
484            ondblclick:
485                dblclick event handler.  
486                Value hint: Event handler content attribute
487            
488            ondrag:
489                drag event handler.  
490                Value hint: Event handler content attribute
491            
492            ondragend:
493                dragend event handler.  
494                Value hint: Event handler content attribute
495            
496            ondragenter:
497                dragenter event handler.  
498                Value hint: Event handler content attribute
499            
500            ondragleave:
501                dragleave event handler.  
502                Value hint: Event handler content attribute
503            
504            ondragover:
505                dragover event handler.  
506                Value hint: Event handler content attribute
507            
508            ondragstart:
509                dragstart event handler.  
510                Value hint: Event handler content attribute
511            
512            ondrop:
513                drop event handler.  
514                Value hint: Event handler content attribute
515            
516            ondurationchange:
517                durationchange event handler.  
518                Value hint: Event handler content attribute
519            
520            onemptied:
521                emptied event handler.  
522                Value hint: Event handler content attribute
523            
524            onended:
525                ended event handler.  
526                Value hint: Event handler content attribute
527            
528            onerror:
529                error event handler.  
530                Value hint: Event handler content attribute
531            
532            onfocus:
533                focus event handler.  
534                Value hint: Event handler content attribute
535            
536            onformdata:
537                formdata event handler.  
538                Value hint: Event handler content attribute
539            
540            oninput:
541                input event handler.  
542                Value hint: Event handler content attribute
543            
544            oninvalid:
545                invalid event handler.  
546                Value hint: Event handler content attribute
547            
548            onkeydown:
549                keydown event handler.  
550                Value hint: Event handler content attribute
551            
552            onkeypress:
553                keypress event handler.  
554                Value hint: Event handler content attribute
555            
556            onkeyup:
557                keyup event handler.  
558                Value hint: Event handler content attribute
559            
560            onload:
561                load event handler.  
562                Value hint: Event handler content attribute
563            
564            onloadeddata:
565                loadeddata event handler.  
566                Value hint: Event handler content attribute
567            
568            onloadedmetadata:
569                loadedmetadata event handler.  
570                Value hint: Event handler content attribute
571            
572            onloadstart:
573                loadstart event handler.  
574                Value hint: Event handler content attribute
575            
576            onmousedown:
577                mousedown event handler.  
578                Value hint: Event handler content attribute
579            
580            onmouseenter:
581                mouseenter event handler.  
582                Value hint: Event handler content attribute
583            
584            onmouseleave:
585                mouseleave event handler.  
586                Value hint: Event handler content attribute
587            
588            onmousemove:
589                mousemove event handler.  
590                Value hint: Event handler content attribute
591            
592            onmouseout:
593                mouseout event handler.  
594                Value hint: Event handler content attribute
595            
596            onmouseover:
597                mouseover event handler.  
598                Value hint: Event handler content attribute
599            
600            onmouseup:
601                mouseup event handler.  
602                Value hint: Event handler content attribute
603            
604            onpaste:
605                paste event handler.  
606                Value hint: Event handler content attribute
607            
608            onpause:
609                pause event handler.  
610                Value hint: Event handler content attribute
611            
612            onplay:
613                play event handler.  
614                Value hint: Event handler content attribute
615            
616            onplaying:
617                playing event handler.  
618                Value hint: Event handler content attribute
619            
620            onprogress:
621                progress event handler.  
622                Value hint: Event handler content attribute
623            
624            onratechange:
625                ratechange event handler.  
626                Value hint: Event handler content attribute
627            
628            onreset:
629                reset event handler.  
630                Value hint: Event handler content attribute
631            
632            onresize:
633                resize event handler.  
634                Value hint: Event handler content attribute
635            
636            onscroll:
637                scroll event handler.  
638                Value hint: Event handler content attribute
639            
640            onscrollend:
641                scrollend event handler.  
642                Value hint: Event handler content attribute
643            
644            onsecuritypolicyviolation:
645                securitypolicyviolation event handler.  
646                Value hint: Event handler content attribute
647            
648            onseeked:
649                seeked event handler.  
650                Value hint: Event handler content attribute
651            
652            onseeking:
653                seeking event handler.  
654                Value hint: Event handler content attribute
655            
656            onselect:
657                select event handler.  
658                Value hint: Event handler content attribute
659            
660            onslotchange:
661                slotchange event handler.  
662                Value hint: Event handler content attribute
663            
664            onstalled:
665                stalled event handler.  
666                Value hint: Event handler content attribute
667            
668            onsubmit:
669                submit event handler.  
670                Value hint: Event handler content attribute
671            
672            onsuspend:
673                suspend event handler.  
674                Value hint: Event handler content attribute
675            
676            ontimeupdate:
677                timeupdate event handler.  
678                Value hint: Event handler content attribute
679            
680            ontoggle:
681                toggle event handler.  
682                Value hint: Event handler content attribute
683            
684            onvolumechange:
685                volumechange event handler.  
686                Value hint: Event handler content attribute
687            
688            onwaiting:
689                waiting event handler.  
690                Value hint: Event handler content attribute
691            
692            onwheel:
693                wheel event handler.  
694                Value hint: Event handler content attribute
695            
696            popover:
697                Makes the element a popover element
698            
699            slot:
700                The element's desired slot
701            
702            spellcheck:
703                Whether the element is to have its spelling and grammar checked
704            
705            style:
706                Presentational and formatting instructions.  
707                Value hint: CSS declarations*
708            
709            tabindex:
710                Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation
711            
712            translate:
713                Whether the element is to be translated when the page is localized
714            
715            writingsuggestions:
716                Whether the element can offer writing suggestions or not.
717            
718        """  # fmt: skip
719        super().__init__(
720            "input", void_element=True, attrs=attrs, children=children
721        )
722        if not (id is None or id is False):
723            self._process_attr("id", id)
724        if not (class_ is None or class_ is False):
725            self._process_attr("class", class_)
726        if not (accept is None or accept is False):
727            self._process_attr("accept", accept)
728        if not (alpha is None or alpha is False):
729            self._process_attr("alpha", alpha)
730        if not (alt is None or alt is False):
731            self._process_attr("alt", alt)
732        if not (autocomplete is None or autocomplete is False):
733            self._process_attr("autocomplete", autocomplete)
734        if not (checked is None or checked is False):
735            self._process_attr("checked", checked)
736        if not (colorspace is None or colorspace is False):
737            self._process_attr("colorspace", colorspace)
738        if not (dirname is None or dirname is False):
739            self._process_attr("dirname", dirname)
740        if not (disabled is None or disabled is False):
741            self._process_attr("disabled", disabled)
742        if not (form is None or form is False):
743            self._process_attr("form", form)
744        if not (formaction is None or formaction is False):
745            self._process_attr("formaction", formaction)
746        if not (formenctype is None or formenctype is False):
747            self._process_attr("formenctype", formenctype)
748        if not (formmethod is None or formmethod is False):
749            self._process_attr("formmethod", formmethod)
750        if not (formnovalidate is None or formnovalidate is False):
751            self._process_attr("formnovalidate", formnovalidate)
752        if not (formtarget is None or formtarget is False):
753            self._process_attr("formtarget", formtarget)
754        if not (height is None or height is False):
755            self._process_attr("height", height)
756        if not (list is None or list is False):
757            self._process_attr("list", list)
758        if not (max is None or max is False):
759            self._process_attr("max", max)
760        if not (maxlength is None or maxlength is False):
761            self._process_attr("maxlength", maxlength)
762        if not (min is None or min is False):
763            self._process_attr("min", min)
764        if not (minlength is None or minlength is False):
765            self._process_attr("minlength", minlength)
766        if not (multiple is None or multiple is False):
767            self._process_attr("multiple", multiple)
768        if not (name is None or name is False):
769            self._process_attr("name", name)
770        if not (pattern is None or pattern is False):
771            self._process_attr("pattern", pattern)
772        if not (placeholder is None or placeholder is False):
773            self._process_attr("placeholder", placeholder)
774        if not (popovertarget is None or popovertarget is False):
775            self._process_attr("popovertarget", popovertarget)
776        if not (popovertargetaction is None or popovertargetaction is False):
777            self._process_attr("popovertargetaction", popovertargetaction)
778        if not (readonly is None or readonly is False):
779            self._process_attr("readonly", readonly)
780        if not (required is None or required is False):
781            self._process_attr("required", required)
782        if not (size is None or size is False):
783            self._process_attr("size", size)
784        if not (src is None or src is False):
785            self._process_attr("src", src)
786        if not (step is None or step is False):
787            self._process_attr("step", step)
788        if not (title is None or title is False):
789            self._process_attr("title", title)
790        if not (type is None or type is False):
791            self._process_attr("type", type)
792        if not (value is None or value is False):
793            self._process_attr("value", value)
794        if not (width is None or width is False):
795            self._process_attr("width", width)
796        if not (accesskey is None or accesskey is False):
797            self._process_attr("accesskey", accesskey)
798        if not (autocapitalize is None or autocapitalize is False):
799            self._process_attr("autocapitalize", autocapitalize)
800        if not (autocorrect is None or autocorrect is False):
801            self._process_attr("autocorrect", autocorrect)
802        if not (autofocus is None or autofocus is False):
803            self._process_attr("autofocus", autofocus)
804        if not (contenteditable is None or contenteditable is False):
805            self._process_attr("contenteditable", contenteditable)
806        if not (dir is None or dir is False):
807            self._process_attr("dir", dir)
808        if not (draggable is None or draggable is False):
809            self._process_attr("draggable", draggable)
810        if not (enterkeyhint is None or enterkeyhint is False):
811            self._process_attr("enterkeyhint", enterkeyhint)
812        if not (hidden is None or hidden is False):
813            self._process_attr("hidden", hidden)
814        if not (inert is None or inert is False):
815            self._process_attr("inert", inert)
816        if not (inputmode is None or inputmode is False):
817            self._process_attr("inputmode", inputmode)
818        if not (is_ is None or is_ is False):
819            self._process_attr("is", is_)
820        if not (itemid is None or itemid is False):
821            self._process_attr("itemid", itemid)
822        if not (itemprop is None or itemprop is False):
823            self._process_attr("itemprop", itemprop)
824        if not (itemref is None or itemref is False):
825            self._process_attr("itemref", itemref)
826        if not (itemscope is None or itemscope is False):
827            self._process_attr("itemscope", itemscope)
828        if not (itemtype is None or itemtype is False):
829            self._process_attr("itemtype", itemtype)
830        if not (lang is None or lang is False):
831            self._process_attr("lang", lang)
832        if not (nonce is None or nonce is False):
833            self._process_attr("nonce", nonce)
834        if not (onauxclick is None or onauxclick is False):
835            self._process_attr("onauxclick", onauxclick)
836        if not (onbeforeinput is None or onbeforeinput is False):
837            self._process_attr("onbeforeinput", onbeforeinput)
838        if not (onbeforematch is None or onbeforematch is False):
839            self._process_attr("onbeforematch", onbeforematch)
840        if not (onbeforetoggle is None or onbeforetoggle is False):
841            self._process_attr("onbeforetoggle", onbeforetoggle)
842        if not (onblur is None or onblur is False):
843            self._process_attr("onblur", onblur)
844        if not (oncancel is None or oncancel is False):
845            self._process_attr("oncancel", oncancel)
846        if not (oncanplay is None or oncanplay is False):
847            self._process_attr("oncanplay", oncanplay)
848        if not (oncanplaythrough is None or oncanplaythrough is False):
849            self._process_attr("oncanplaythrough", oncanplaythrough)
850        if not (onchange is None or onchange is False):
851            self._process_attr("onchange", onchange)
852        if not (onclick is None or onclick is False):
853            self._process_attr("onclick", onclick)
854        if not (onclose is None or onclose is False):
855            self._process_attr("onclose", onclose)
856        if not (oncontextlost is None or oncontextlost is False):
857            self._process_attr("oncontextlost", oncontextlost)
858        if not (oncontextmenu is None or oncontextmenu is False):
859            self._process_attr("oncontextmenu", oncontextmenu)
860        if not (oncontextrestored is None or oncontextrestored is False):
861            self._process_attr("oncontextrestored", oncontextrestored)
862        if not (oncopy is None or oncopy is False):
863            self._process_attr("oncopy", oncopy)
864        if not (oncuechange is None or oncuechange is False):
865            self._process_attr("oncuechange", oncuechange)
866        if not (oncut is None or oncut is False):
867            self._process_attr("oncut", oncut)
868        if not (ondblclick is None or ondblclick is False):
869            self._process_attr("ondblclick", ondblclick)
870        if not (ondrag is None or ondrag is False):
871            self._process_attr("ondrag", ondrag)
872        if not (ondragend is None or ondragend is False):
873            self._process_attr("ondragend", ondragend)
874        if not (ondragenter is None or ondragenter is False):
875            self._process_attr("ondragenter", ondragenter)
876        if not (ondragleave is None or ondragleave is False):
877            self._process_attr("ondragleave", ondragleave)
878        if not (ondragover is None or ondragover is False):
879            self._process_attr("ondragover", ondragover)
880        if not (ondragstart is None or ondragstart is False):
881            self._process_attr("ondragstart", ondragstart)
882        if not (ondrop is None or ondrop is False):
883            self._process_attr("ondrop", ondrop)
884        if not (ondurationchange is None or ondurationchange is False):
885            self._process_attr("ondurationchange", ondurationchange)
886        if not (onemptied is None or onemptied is False):
887            self._process_attr("onemptied", onemptied)
888        if not (onended is None or onended is False):
889            self._process_attr("onended", onended)
890        if not (onerror is None or onerror is False):
891            self._process_attr("onerror", onerror)
892        if not (onfocus is None or onfocus is False):
893            self._process_attr("onfocus", onfocus)
894        if not (onformdata is None or onformdata is False):
895            self._process_attr("onformdata", onformdata)
896        if not (oninput is None or oninput is False):
897            self._process_attr("oninput", oninput)
898        if not (oninvalid is None or oninvalid is False):
899            self._process_attr("oninvalid", oninvalid)
900        if not (onkeydown is None or onkeydown is False):
901            self._process_attr("onkeydown", onkeydown)
902        if not (onkeypress is None or onkeypress is False):
903            self._process_attr("onkeypress", onkeypress)
904        if not (onkeyup is None or onkeyup is False):
905            self._process_attr("onkeyup", onkeyup)
906        if not (onload is None or onload is False):
907            self._process_attr("onload", onload)
908        if not (onloadeddata is None or onloadeddata is False):
909            self._process_attr("onloadeddata", onloadeddata)
910        if not (onloadedmetadata is None or onloadedmetadata is False):
911            self._process_attr("onloadedmetadata", onloadedmetadata)
912        if not (onloadstart is None or onloadstart is False):
913            self._process_attr("onloadstart", onloadstart)
914        if not (onmousedown is None or onmousedown is False):
915            self._process_attr("onmousedown", onmousedown)
916        if not (onmouseenter is None or onmouseenter is False):
917            self._process_attr("onmouseenter", onmouseenter)
918        if not (onmouseleave is None or onmouseleave is False):
919            self._process_attr("onmouseleave", onmouseleave)
920        if not (onmousemove is None or onmousemove is False):
921            self._process_attr("onmousemove", onmousemove)
922        if not (onmouseout is None or onmouseout is False):
923            self._process_attr("onmouseout", onmouseout)
924        if not (onmouseover is None or onmouseover is False):
925            self._process_attr("onmouseover", onmouseover)
926        if not (onmouseup is None or onmouseup is False):
927            self._process_attr("onmouseup", onmouseup)
928        if not (onpaste is None or onpaste is False):
929            self._process_attr("onpaste", onpaste)
930        if not (onpause is None or onpause is False):
931            self._process_attr("onpause", onpause)
932        if not (onplay is None or onplay is False):
933            self._process_attr("onplay", onplay)
934        if not (onplaying is None or onplaying is False):
935            self._process_attr("onplaying", onplaying)
936        if not (onprogress is None or onprogress is False):
937            self._process_attr("onprogress", onprogress)
938        if not (onratechange is None or onratechange is False):
939            self._process_attr("onratechange", onratechange)
940        if not (onreset is None or onreset is False):
941            self._process_attr("onreset", onreset)
942        if not (onresize is None or onresize is False):
943            self._process_attr("onresize", onresize)
944        if not (onscroll is None or onscroll is False):
945            self._process_attr("onscroll", onscroll)
946        if not (onscrollend is None or onscrollend is False):
947            self._process_attr("onscrollend", onscrollend)
948        if not (
949            onsecuritypolicyviolation is None
950            or onsecuritypolicyviolation is False
951        ):
952            self._process_attr(
953                "onsecuritypolicyviolation", onsecuritypolicyviolation
954            )
955        if not (onseeked is None or onseeked is False):
956            self._process_attr("onseeked", onseeked)
957        if not (onseeking is None or onseeking is False):
958            self._process_attr("onseeking", onseeking)
959        if not (onselect is None or onselect is False):
960            self._process_attr("onselect", onselect)
961        if not (onslotchange is None or onslotchange is False):
962            self._process_attr("onslotchange", onslotchange)
963        if not (onstalled is None or onstalled is False):
964            self._process_attr("onstalled", onstalled)
965        if not (onsubmit is None or onsubmit is False):
966            self._process_attr("onsubmit", onsubmit)
967        if not (onsuspend is None or onsuspend is False):
968            self._process_attr("onsuspend", onsuspend)
969        if not (ontimeupdate is None or ontimeupdate is False):
970            self._process_attr("ontimeupdate", ontimeupdate)
971        if not (ontoggle is None or ontoggle is False):
972            self._process_attr("ontoggle", ontoggle)
973        if not (onvolumechange is None or onvolumechange is False):
974            self._process_attr("onvolumechange", onvolumechange)
975        if not (onwaiting is None or onwaiting is False):
976            self._process_attr("onwaiting", onwaiting)
977        if not (onwheel is None or onwheel is False):
978            self._process_attr("onwheel", onwheel)
979        if not (popover is None or popover is False):
980            self._process_attr("popover", popover)
981        if not (slot is None or slot is False):
982            self._process_attr("slot", slot)
983        if not (spellcheck is None or spellcheck is False):
984            self._process_attr("spellcheck", spellcheck)
985        if not (style is None or style is False):
986            self._process_attr("style", style)
987        if not (tabindex is None or tabindex is False):
988            self._process_attr("tabindex", tabindex)
989        if not (translate is None or translate is False):
990            self._process_attr("translate", translate)
991        if not (writingsuggestions is None or writingsuggestions is False):
992            self._process_attr("writingsuggestions", writingsuggestions)

The 'input' element.
Description: Form control
Categories: flow phrasing interactive* listed labelable submittable resettable form-associated palpable*
Parents: phrasing
Children: empty
Interface: HTMLInputElement
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

input( attrs: Union[Iterable[html_compose.base_attribute.BaseAttribute], Mapping[str, Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]], Iterable[Union[html_compose.base_attribute.BaseAttribute, Iterable[html_compose.base_attribute.BaseAttribute], Mapping[str, Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]]]], NoneType] = None, id: str | float | int | bool | None = None, class_: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, accept: str | float | int | bool | None = None, alpha: bool | str | float | int | None = None, alt: str | float | int | bool | None = None, autocomplete: str | float | int | bool | None = None, checked: bool | str | float | int | None = None, colorspace: Union[Literal['limited-srgb', 'display-p3'], str, float, int, bool, NoneType] = None, dirname: str | float | int | bool | None = None, disabled: bool | str | float | int | None = None, form: str | float | int | bool | None = None, formaction: str | float | int | bool | None = None, formenctype: Union[Literal['application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'], str, float, int, bool, NoneType] = None, formmethod: Union[Literal['GET', 'POST', 'dialog'], str, float, int, bool, NoneType] = None, formnovalidate: bool | str | float | int | None = None, formtarget: str | float | int | bool | None = None, height: int | str | float | bool | None = None, list: str | float | int | bool | None = None, max: str | float | int | bool | None = None, maxlength: int | str | float | bool | None = None, min: str | float | int | bool | None = None, minlength: int | str | float | bool | None = None, multiple: bool | str | float | int | None = None, name: str | float | int | bool | None = None, pattern: str | float | int | bool | None = None, placeholder: str | float | int | bool | None = None, popovertarget: str | float | int | bool | None = None, popovertargetaction: Union[Literal['toggle', 'show', 'hide'], str, float, int, bool, NoneType] = None, readonly: bool | str | float | int | None = None, required: bool | str | float | int | None = None, size: str | float | int | bool | None = None, src: str | float | int | bool | None = None, step: float | str | int | bool | None = None, title: str | float | int | bool | None = None, type: str | float | int | bool | None = None, value: str | float | int | bool | None = None, width: int | str | float | bool | None = None, accesskey: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, autocapitalize: Union[Literal['on', 'off', 'none', 'sentences', 'words', 'characters'], str, float, int, bool, NoneType] = None, autocorrect: Union[Literal['on', 'off'], str, float, int, bool, NoneType] = None, autofocus: bool | str | float | int | None = None, contenteditable: Union[Literal['true', 'plaintext-only', 'false'], str, float, int, bool, NoneType] = None, dir: Union[Literal['ltr', 'rtl', 'auto'], str, float, int, bool, NoneType] = None, draggable: Union[Literal['true', 'false'], str, float, int, bool, NoneType] = None, enterkeyhint: Union[Literal['enter', 'done', 'go', 'next', 'previous', 'search', 'send'], str, float, int, bool, NoneType] = None, hidden: Union[Literal['until-found', 'hidden', ''], str, float, int, bool, NoneType] = None, inert: bool | str | float | int | None = None, inputmode: Union[Literal['none', 'text', 'tel', 'email', 'url', 'numeric', 'decimal', 'search'], str, float, int, bool, NoneType] = None, is_: str | float | int | bool | None = None, itemid: str | float | int | bool | None = None, itemprop: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, itemref: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, itemscope: bool | str | float | int | None = None, itemtype: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, lang: str | float | int | bool | None = None, nonce: str | float | int | bool | None = None, onauxclick: str | float | int | bool | None = None, onbeforeinput: str | float | int | bool | None = None, onbeforematch: str | float | int | bool | None = None, onbeforetoggle: str | float | int | bool | None = None, onblur: str | float | int | bool | None = None, oncancel: str | float | int | bool | None = None, oncanplay: str | float | int | bool | None = None, oncanplaythrough: str | float | int | bool | None = None, onchange: str | float | int | bool | None = None, onclick: str | float | int | bool | None = None, onclose: str | float | int | bool | None = None, oncontextlost: str | float | int | bool | None = None, oncontextmenu: str | float | int | bool | None = None, oncontextrestored: str | float | int | bool | None = None, oncopy: str | float | int | bool | None = None, oncuechange: str | float | int | bool | None = None, oncut: str | float | int | bool | None = None, ondblclick: str | float | int | bool | None = None, ondrag: str | float | int | bool | None = None, ondragend: str | float | int | bool | None = None, ondragenter: str | float | int | bool | None = None, ondragleave: str | float | int | bool | None = None, ondragover: str | float | int | bool | None = None, ondragstart: str | float | int | bool | None = None, ondrop: str | float | int | bool | None = None, ondurationchange: str | float | int | bool | None = None, onemptied: str | float | int | bool | None = None, onended: str | float | int | bool | None = None, onerror: str | float | int | bool | None = None, onfocus: str | float | int | bool | None = None, onformdata: str | float | int | bool | None = None, oninput: str | float | int | bool | None = None, oninvalid: str | float | int | bool | None = None, onkeydown: str | float | int | bool | None = None, onkeypress: str | float | int | bool | None = None, onkeyup: str | float | int | bool | None = None, onload: str | float | int | bool | None = None, onloadeddata: str | float | int | bool | None = None, onloadedmetadata: str | float | int | bool | None = None, onloadstart: str | float | int | bool | None = None, onmousedown: str | float | int | bool | None = None, onmouseenter: str | float | int | bool | None = None, onmouseleave: str | float | int | bool | None = None, onmousemove: str | float | int | bool | None = None, onmouseout: str | float | int | bool | None = None, onmouseover: str | float | int | bool | None = None, onmouseup: str | float | int | bool | None = None, onpaste: str | float | int | bool | None = None, onpause: str | float | int | bool | None = None, onplay: str | float | int | bool | None = None, onplaying: str | float | int | bool | None = None, onprogress: str | float | int | bool | None = None, onratechange: str | float | int | bool | None = None, onreset: str | float | int | bool | None = None, onresize: str | float | int | bool | None = None, onscroll: str | float | int | bool | None = None, onscrollend: str | float | int | bool | None = None, onsecuritypolicyviolation: str | float | int | bool | None = None, onseeked: str | float | int | bool | None = None, onseeking: str | float | int | bool | None = None, onselect: str | float | int | bool | None = None, onslotchange: str | float | int | bool | None = None, onstalled: str | float | int | bool | None = None, onsubmit: str | float | int | bool | None = None, onsuspend: str | float | int | bool | None = None, ontimeupdate: str | float | int | bool | None = None, ontoggle: str | float | int | bool | None = None, onvolumechange: str | float | int | bool | None = None, onwaiting: str | float | int | bool | None = None, onwheel: str | float | int | bool | None = None, popover: Union[Literal['auto', 'manual'], str, float, int, bool, NoneType] = None, slot: str | float | int | bool | None = None, spellcheck: Union[Literal['true', 'false', ''], str, float, int, bool, NoneType] = None, style: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool], Mapping[str | float | int | bool, str | float | int | bool]] = None, tabindex: int | str | float | bool | None = None, translate: Union[Literal['yes', 'no'], str, float, int, bool, NoneType] = None, writingsuggestions: Union[Literal['true', 'false', ''], str, float, int, bool, NoneType] = None, children: list | None = None)
 47    def __init__(
 48        self,
 49        attrs: Iterable[BaseAttribute]
 50        | Mapping[str, Resolvable]
 51        | Iterable[
 52            BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable]
 53        ]
 54        | None = None,
 55        id: StrLike | None = None,
 56        class_: Resolvable | None = None,
 57        accept: StrLike | None = None,
 58        alpha: bool | StrLike | None = None,
 59        alt: StrLike | None = None,
 60        autocomplete: StrLike | None = None,
 61        checked: bool | StrLike | None = None,
 62        colorspace: Literal["limited-srgb", "display-p3"]
 63        | StrLike
 64        | None = None,
 65        dirname: StrLike | None = None,
 66        disabled: bool | StrLike | None = None,
 67        form: StrLike | None = None,
 68        formaction: StrLike | None = None,
 69        formenctype: Literal[
 70            "application/x-www-form-urlencoded",
 71            "multipart/form-data",
 72            "text/plain",
 73        ]
 74        | StrLike
 75        | None = None,
 76        formmethod: Literal["GET", "POST", "dialog"] | StrLike | None = None,
 77        formnovalidate: bool | StrLike | None = None,
 78        formtarget: StrLike | None = None,
 79        height: int | StrLike | None = None,
 80        list: StrLike | None = None,
 81        max: StrLike | None = None,
 82        maxlength: int | StrLike | None = None,
 83        min: StrLike | None = None,
 84        minlength: int | StrLike | None = None,
 85        multiple: bool | StrLike | None = None,
 86        name: StrLike | None = None,
 87        pattern: StrLike | None = None,
 88        placeholder: StrLike | None = None,
 89        popovertarget: StrLike | None = None,
 90        popovertargetaction: Literal["toggle", "show", "hide"]
 91        | StrLike
 92        | None = None,
 93        readonly: bool | StrLike | None = None,
 94        required: bool | StrLike | None = None,
 95        size: StrLike | None = None,
 96        src: StrLike | None = None,
 97        step: float | StrLike | None = None,
 98        title: StrLike | None = None,
 99        type: StrLike | None = None,
100        value: StrLike | None = None,
101        width: int | StrLike | None = None,
102        accesskey: Resolvable | StrLike | None = None,
103        autocapitalize: Literal[
104            "on", "off", "none", "sentences", "words", "characters"
105        ]
106        | StrLike
107        | None = None,
108        autocorrect: Literal["on", "off"] | StrLike | None = None,
109        autofocus: bool | StrLike | None = None,
110        contenteditable: Literal["true", "plaintext-only", "false"]
111        | StrLike
112        | None = None,
113        dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None,
114        draggable: Literal["true", "false"] | StrLike | None = None,
115        enterkeyhint: Literal[
116            "enter", "done", "go", "next", "previous", "search", "send"
117        ]
118        | StrLike
119        | None = None,
120        hidden: Literal["until-found", "hidden", ""] | StrLike | None = None,
121        inert: bool | StrLike | None = None,
122        inputmode: Literal[
123            "none",
124            "text",
125            "tel",
126            "email",
127            "url",
128            "numeric",
129            "decimal",
130            "search",
131        ]
132        | StrLike
133        | None = None,
134        is_: StrLike | None = None,
135        itemid: StrLike | None = None,
136        itemprop: Resolvable | StrLike | None = None,
137        itemref: Resolvable | StrLike | None = None,
138        itemscope: bool | StrLike | None = None,
139        itemtype: Resolvable | StrLike | None = None,
140        lang: StrLike | None = None,
141        nonce: StrLike | None = None,
142        onauxclick: StrLike | None = None,
143        onbeforeinput: StrLike | None = None,
144        onbeforematch: StrLike | None = None,
145        onbeforetoggle: StrLike | None = None,
146        onblur: StrLike | None = None,
147        oncancel: StrLike | None = None,
148        oncanplay: StrLike | None = None,
149        oncanplaythrough: StrLike | None = None,
150        onchange: StrLike | None = None,
151        onclick: StrLike | None = None,
152        onclose: StrLike | None = None,
153        oncontextlost: StrLike | None = None,
154        oncontextmenu: StrLike | None = None,
155        oncontextrestored: StrLike | None = None,
156        oncopy: StrLike | None = None,
157        oncuechange: StrLike | None = None,
158        oncut: StrLike | None = None,
159        ondblclick: StrLike | None = None,
160        ondrag: StrLike | None = None,
161        ondragend: StrLike | None = None,
162        ondragenter: StrLike | None = None,
163        ondragleave: StrLike | None = None,
164        ondragover: StrLike | None = None,
165        ondragstart: StrLike | None = None,
166        ondrop: StrLike | None = None,
167        ondurationchange: StrLike | None = None,
168        onemptied: StrLike | None = None,
169        onended: StrLike | None = None,
170        onerror: StrLike | None = None,
171        onfocus: StrLike | None = None,
172        onformdata: StrLike | None = None,
173        oninput: StrLike | None = None,
174        oninvalid: StrLike | None = None,
175        onkeydown: StrLike | None = None,
176        onkeypress: StrLike | None = None,
177        onkeyup: StrLike | None = None,
178        onload: StrLike | None = None,
179        onloadeddata: StrLike | None = None,
180        onloadedmetadata: StrLike | None = None,
181        onloadstart: StrLike | None = None,
182        onmousedown: StrLike | None = None,
183        onmouseenter: StrLike | None = None,
184        onmouseleave: StrLike | None = None,
185        onmousemove: StrLike | None = None,
186        onmouseout: StrLike | None = None,
187        onmouseover: StrLike | None = None,
188        onmouseup: StrLike | None = None,
189        onpaste: StrLike | None = None,
190        onpause: StrLike | None = None,
191        onplay: StrLike | None = None,
192        onplaying: StrLike | None = None,
193        onprogress: StrLike | None = None,
194        onratechange: StrLike | None = None,
195        onreset: StrLike | None = None,
196        onresize: StrLike | None = None,
197        onscroll: StrLike | None = None,
198        onscrollend: StrLike | None = None,
199        onsecuritypolicyviolation: StrLike | None = None,
200        onseeked: StrLike | None = None,
201        onseeking: StrLike | None = None,
202        onselect: StrLike | None = None,
203        onslotchange: StrLike | None = None,
204        onstalled: StrLike | None = None,
205        onsubmit: StrLike | None = None,
206        onsuspend: StrLike | None = None,
207        ontimeupdate: StrLike | None = None,
208        ontoggle: StrLike | None = None,
209        onvolumechange: StrLike | None = None,
210        onwaiting: StrLike | None = None,
211        onwheel: StrLike | None = None,
212        popover: Literal["auto", "manual"] | StrLike | None = None,
213        slot: StrLike | None = None,
214        spellcheck: Literal["true", "false", ""] | StrLike | None = None,
215        style: Resolvable | Mapping[StrLike, StrLike] | None = None,
216        tabindex: int | StrLike | None = None,
217        translate: Literal["yes", "no"] | StrLike | None = None,
218        writingsuggestions: Literal["true", "false", ""]
219        | StrLike
220        | None = None,
221        children: list | None = None,
222    ) -> None:
223        """
224        Initialize 'input' (Form control) element.  
225        Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
226
227        Args:
228            attrs: 
229                A list or dictionary of attributes for the element
230            
231            id:
232                The element's ID
233            
234            class_:
235                Classes to which the element belongs
236            
237            accept:
238                Hint for expected file type in file upload controls.  
239                Value hint: Set of comma-separated tokens* consisting of valid MIME type strings with no parameters or audio/*, video/*, or image/*
240            
241            alpha:
242                Allow the color's alpha component to be set
243            
244            alt:
245                Replacement text for use when images are not available
246            
247            autocomplete:
248                Hint for form autofill feature.  
249                Value hint: Autofill field name and related tokens*
250            
251            checked:
252                Whether the control is checked
253            
254            colorspace:
255                The color space of the serialized color
256            
257            dirname:
258                Name of form control to use for sending the element's directionality in form submission
259            
260            disabled:
261                Whether the form control is disabled
262            
263            form:
264                Associates the element with a form element.  
265                Value hint: ID*
266            
267            formaction:
268                URL to use for form submission.  
269                Value hint: Valid non-empty URL potentially surrounded by spaces
270            
271            formenctype:
272                Entry list encoding type to use for form submission
273            
274            formmethod:
275                Variant to use for form submission
276            
277            formnovalidate:
278                Bypass form control validation for form submission
279            
280            formtarget:
281                Navigable for form submission.  
282                Value hint: Valid navigable target name or keyword
283            
284            height:
285                Vertical dimension
286            
287            list:
288                List of autocomplete options.  
289                Value hint: ID*
290            
291            max:
292                Maximum value.  
293                Value hint: Varies*
294            
295            maxlength:
296                Maximum length of value
297            
298            min:
299                Minimum value.  
300                Value hint: Varies*
301            
302            minlength:
303                Minimum length of value
304            
305            multiple:
306                Whether to allow multiple values
307            
308            name:
309                Name of the element to use for form submission and in the form.elements API
310            
311            pattern:
312                Pattern to be matched by the form control's value.  
313                Value hint: Regular expression matching the JavaScript Pattern production
314            
315            placeholder:
316                User-visible label to be placed within the form control
317            
318            popovertarget:
319                Targets a popover element to toggle, show, or hide.  
320                Value hint: ID*
321            
322            popovertargetaction:
323                Indicates whether a targeted popover element is to be toggled, shown, or hidden
324            
325            readonly:
326                Whether to allow the value to be edited by the user
327            
328            required:
329                Whether the control is required for form submission
330            
331            size:
332                Size of the control.  
333                Value hint: Valid non-negative integer greater than zero
334            
335            src:
336                Address of the resource.  
337                Value hint: Valid non-empty URL potentially surrounded by spaces
338            
339            step:
340                Granularity to be matched by the form control's value
341            
342            title:
343                Description of pattern (when used with pattern attribute)
344            
345            type:
346                Type of form control.  
347                Value hint: input type keyword
348            
349            value:
350                Value of the form control.  
351                Value hint: Varies*
352            
353            width:
354                Horizontal dimension
355            
356            accesskey:
357                Keyboard shortcut to activate or focus element
358            
359            autocapitalize:
360                Recommended autocapitalization behavior (for supported input methods)
361            
362            autocorrect:
363                Recommended autocorrection behavior (for supported input methods)
364            
365            autofocus:
366                Automatically focus the element when the page is loaded
367            
368            contenteditable:
369                Whether the element is editable
370            
371            dir:
372                The text directionality of the element
373            
374            draggable:
375                Whether the element is draggable
376            
377            enterkeyhint:
378                Hint for selecting an enter key action
379            
380            hidden:
381                Whether the element is relevant
382            
383            inert:
384                Whether the element is inert.
385            
386            inputmode:
387                Hint for selecting an input modality
388            
389            is_:
390                Creates a customized built-in element.  
391                Value hint: Valid custom element name of a defined customized built-in element
392            
393            itemid:
394                Global identifier for a microdata item.  
395                Value hint: Valid URL potentially surrounded by spaces
396            
397            itemprop:
398                Property names of a microdata item
399            
400            itemref:
401                Referenced elements
402            
403            itemscope:
404                Introduces a microdata item
405            
406            itemtype:
407                Item types of a microdata item
408            
409            lang:
410                Language of the element.  
411                Value hint: Valid BCP 47 language tag or the empty string
412            
413            nonce:
414                Cryptographic nonce used in Content Security Policy checks [CSP]
415            
416            onauxclick:
417                auxclick event handler.  
418                Value hint: Event handler content attribute
419            
420            onbeforeinput:
421                beforeinput event handler.  
422                Value hint: Event handler content attribute
423            
424            onbeforematch:
425                beforematch event handler.  
426                Value hint: Event handler content attribute
427            
428            onbeforetoggle:
429                beforetoggle event handler.  
430                Value hint: Event handler content attribute
431            
432            onblur:
433                blur event handler.  
434                Value hint: Event handler content attribute
435            
436            oncancel:
437                cancel event handler.  
438                Value hint: Event handler content attribute
439            
440            oncanplay:
441                canplay event handler.  
442                Value hint: Event handler content attribute
443            
444            oncanplaythrough:
445                canplaythrough event handler.  
446                Value hint: Event handler content attribute
447            
448            onchange:
449                change event handler.  
450                Value hint: Event handler content attribute
451            
452            onclick:
453                click event handler.  
454                Value hint: Event handler content attribute
455            
456            onclose:
457                close event handler.  
458                Value hint: Event handler content attribute
459            
460            oncontextlost:
461                contextlost event handler.  
462                Value hint: Event handler content attribute
463            
464            oncontextmenu:
465                contextmenu event handler.  
466                Value hint: Event handler content attribute
467            
468            oncontextrestored:
469                contextrestored event handler.  
470                Value hint: Event handler content attribute
471            
472            oncopy:
473                copy event handler.  
474                Value hint: Event handler content attribute
475            
476            oncuechange:
477                cuechange event handler.  
478                Value hint: Event handler content attribute
479            
480            oncut:
481                cut event handler.  
482                Value hint: Event handler content attribute
483            
484            ondblclick:
485                dblclick event handler.  
486                Value hint: Event handler content attribute
487            
488            ondrag:
489                drag event handler.  
490                Value hint: Event handler content attribute
491            
492            ondragend:
493                dragend event handler.  
494                Value hint: Event handler content attribute
495            
496            ondragenter:
497                dragenter event handler.  
498                Value hint: Event handler content attribute
499            
500            ondragleave:
501                dragleave event handler.  
502                Value hint: Event handler content attribute
503            
504            ondragover:
505                dragover event handler.  
506                Value hint: Event handler content attribute
507            
508            ondragstart:
509                dragstart event handler.  
510                Value hint: Event handler content attribute
511            
512            ondrop:
513                drop event handler.  
514                Value hint: Event handler content attribute
515            
516            ondurationchange:
517                durationchange event handler.  
518                Value hint: Event handler content attribute
519            
520            onemptied:
521                emptied event handler.  
522                Value hint: Event handler content attribute
523            
524            onended:
525                ended event handler.  
526                Value hint: Event handler content attribute
527            
528            onerror:
529                error event handler.  
530                Value hint: Event handler content attribute
531            
532            onfocus:
533                focus event handler.  
534                Value hint: Event handler content attribute
535            
536            onformdata:
537                formdata event handler.  
538                Value hint: Event handler content attribute
539            
540            oninput:
541                input event handler.  
542                Value hint: Event handler content attribute
543            
544            oninvalid:
545                invalid event handler.  
546                Value hint: Event handler content attribute
547            
548            onkeydown:
549                keydown event handler.  
550                Value hint: Event handler content attribute
551            
552            onkeypress:
553                keypress event handler.  
554                Value hint: Event handler content attribute
555            
556            onkeyup:
557                keyup event handler.  
558                Value hint: Event handler content attribute
559            
560            onload:
561                load event handler.  
562                Value hint: Event handler content attribute
563            
564            onloadeddata:
565                loadeddata event handler.  
566                Value hint: Event handler content attribute
567            
568            onloadedmetadata:
569                loadedmetadata event handler.  
570                Value hint: Event handler content attribute
571            
572            onloadstart:
573                loadstart event handler.  
574                Value hint: Event handler content attribute
575            
576            onmousedown:
577                mousedown event handler.  
578                Value hint: Event handler content attribute
579            
580            onmouseenter:
581                mouseenter event handler.  
582                Value hint: Event handler content attribute
583            
584            onmouseleave:
585                mouseleave event handler.  
586                Value hint: Event handler content attribute
587            
588            onmousemove:
589                mousemove event handler.  
590                Value hint: Event handler content attribute
591            
592            onmouseout:
593                mouseout event handler.  
594                Value hint: Event handler content attribute
595            
596            onmouseover:
597                mouseover event handler.  
598                Value hint: Event handler content attribute
599            
600            onmouseup:
601                mouseup event handler.  
602                Value hint: Event handler content attribute
603            
604            onpaste:
605                paste event handler.  
606                Value hint: Event handler content attribute
607            
608            onpause:
609                pause event handler.  
610                Value hint: Event handler content attribute
611            
612            onplay:
613                play event handler.  
614                Value hint: Event handler content attribute
615            
616            onplaying:
617                playing event handler.  
618                Value hint: Event handler content attribute
619            
620            onprogress:
621                progress event handler.  
622                Value hint: Event handler content attribute
623            
624            onratechange:
625                ratechange event handler.  
626                Value hint: Event handler content attribute
627            
628            onreset:
629                reset event handler.  
630                Value hint: Event handler content attribute
631            
632            onresize:
633                resize event handler.  
634                Value hint: Event handler content attribute
635            
636            onscroll:
637                scroll event handler.  
638                Value hint: Event handler content attribute
639            
640            onscrollend:
641                scrollend event handler.  
642                Value hint: Event handler content attribute
643            
644            onsecuritypolicyviolation:
645                securitypolicyviolation event handler.  
646                Value hint: Event handler content attribute
647            
648            onseeked:
649                seeked event handler.  
650                Value hint: Event handler content attribute
651            
652            onseeking:
653                seeking event handler.  
654                Value hint: Event handler content attribute
655            
656            onselect:
657                select event handler.  
658                Value hint: Event handler content attribute
659            
660            onslotchange:
661                slotchange event handler.  
662                Value hint: Event handler content attribute
663            
664            onstalled:
665                stalled event handler.  
666                Value hint: Event handler content attribute
667            
668            onsubmit:
669                submit event handler.  
670                Value hint: Event handler content attribute
671            
672            onsuspend:
673                suspend event handler.  
674                Value hint: Event handler content attribute
675            
676            ontimeupdate:
677                timeupdate event handler.  
678                Value hint: Event handler content attribute
679            
680            ontoggle:
681                toggle event handler.  
682                Value hint: Event handler content attribute
683            
684            onvolumechange:
685                volumechange event handler.  
686                Value hint: Event handler content attribute
687            
688            onwaiting:
689                waiting event handler.  
690                Value hint: Event handler content attribute
691            
692            onwheel:
693                wheel event handler.  
694                Value hint: Event handler content attribute
695            
696            popover:
697                Makes the element a popover element
698            
699            slot:
700                The element's desired slot
701            
702            spellcheck:
703                Whether the element is to have its spelling and grammar checked
704            
705            style:
706                Presentational and formatting instructions.  
707                Value hint: CSS declarations*
708            
709            tabindex:
710                Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation
711            
712            translate:
713                Whether the element is to be translated when the page is localized
714            
715            writingsuggestions:
716                Whether the element can offer writing suggestions or not.
717            
718        """  # fmt: skip
719        super().__init__(
720            "input", void_element=True, attrs=attrs, children=children
721        )
722        if not (id is None or id is False):
723            self._process_attr("id", id)
724        if not (class_ is None or class_ is False):
725            self._process_attr("class", class_)
726        if not (accept is None or accept is False):
727            self._process_attr("accept", accept)
728        if not (alpha is None or alpha is False):
729            self._process_attr("alpha", alpha)
730        if not (alt is None or alt is False):
731            self._process_attr("alt", alt)
732        if not (autocomplete is None or autocomplete is False):
733            self._process_attr("autocomplete", autocomplete)
734        if not (checked is None or checked is False):
735            self._process_attr("checked", checked)
736        if not (colorspace is None or colorspace is False):
737            self._process_attr("colorspace", colorspace)
738        if not (dirname is None or dirname is False):
739            self._process_attr("dirname", dirname)
740        if not (disabled is None or disabled is False):
741            self._process_attr("disabled", disabled)
742        if not (form is None or form is False):
743            self._process_attr("form", form)
744        if not (formaction is None or formaction is False):
745            self._process_attr("formaction", formaction)
746        if not (formenctype is None or formenctype is False):
747            self._process_attr("formenctype", formenctype)
748        if not (formmethod is None or formmethod is False):
749            self._process_attr("formmethod", formmethod)
750        if not (formnovalidate is None or formnovalidate is False):
751            self._process_attr("formnovalidate", formnovalidate)
752        if not (formtarget is None or formtarget is False):
753            self._process_attr("formtarget", formtarget)
754        if not (height is None or height is False):
755            self._process_attr("height", height)
756        if not (list is None or list is False):
757            self._process_attr("list", list)
758        if not (max is None or max is False):
759            self._process_attr("max", max)
760        if not (maxlength is None or maxlength is False):
761            self._process_attr("maxlength", maxlength)
762        if not (min is None or min is False):
763            self._process_attr("min", min)
764        if not (minlength is None or minlength is False):
765            self._process_attr("minlength", minlength)
766        if not (multiple is None or multiple is False):
767            self._process_attr("multiple", multiple)
768        if not (name is None or name is False):
769            self._process_attr("name", name)
770        if not (pattern is None or pattern is False):
771            self._process_attr("pattern", pattern)
772        if not (placeholder is None or placeholder is False):
773            self._process_attr("placeholder", placeholder)
774        if not (popovertarget is None or popovertarget is False):
775            self._process_attr("popovertarget", popovertarget)
776        if not (popovertargetaction is None or popovertargetaction is False):
777            self._process_attr("popovertargetaction", popovertargetaction)
778        if not (readonly is None or readonly is False):
779            self._process_attr("readonly", readonly)
780        if not (required is None or required is False):
781            self._process_attr("required", required)
782        if not (size is None or size is False):
783            self._process_attr("size", size)
784        if not (src is None or src is False):
785            self._process_attr("src", src)
786        if not (step is None or step is False):
787            self._process_attr("step", step)
788        if not (title is None or title is False):
789            self._process_attr("title", title)
790        if not (type is None or type is False):
791            self._process_attr("type", type)
792        if not (value is None or value is False):
793            self._process_attr("value", value)
794        if not (width is None or width is False):
795            self._process_attr("width", width)
796        if not (accesskey is None or accesskey is False):
797            self._process_attr("accesskey", accesskey)
798        if not (autocapitalize is None or autocapitalize is False):
799            self._process_attr("autocapitalize", autocapitalize)
800        if not (autocorrect is None or autocorrect is False):
801            self._process_attr("autocorrect", autocorrect)
802        if not (autofocus is None or autofocus is False):
803            self._process_attr("autofocus", autofocus)
804        if not (contenteditable is None or contenteditable is False):
805            self._process_attr("contenteditable", contenteditable)
806        if not (dir is None or dir is False):
807            self._process_attr("dir", dir)
808        if not (draggable is None or draggable is False):
809            self._process_attr("draggable", draggable)
810        if not (enterkeyhint is None or enterkeyhint is False):
811            self._process_attr("enterkeyhint", enterkeyhint)
812        if not (hidden is None or hidden is False):
813            self._process_attr("hidden", hidden)
814        if not (inert is None or inert is False):
815            self._process_attr("inert", inert)
816        if not (inputmode is None or inputmode is False):
817            self._process_attr("inputmode", inputmode)
818        if not (is_ is None or is_ is False):
819            self._process_attr("is", is_)
820        if not (itemid is None or itemid is False):
821            self._process_attr("itemid", itemid)
822        if not (itemprop is None or itemprop is False):
823            self._process_attr("itemprop", itemprop)
824        if not (itemref is None or itemref is False):
825            self._process_attr("itemref", itemref)
826        if not (itemscope is None or itemscope is False):
827            self._process_attr("itemscope", itemscope)
828        if not (itemtype is None or itemtype is False):
829            self._process_attr("itemtype", itemtype)
830        if not (lang is None or lang is False):
831            self._process_attr("lang", lang)
832        if not (nonce is None or nonce is False):
833            self._process_attr("nonce", nonce)
834        if not (onauxclick is None or onauxclick is False):
835            self._process_attr("onauxclick", onauxclick)
836        if not (onbeforeinput is None or onbeforeinput is False):
837            self._process_attr("onbeforeinput", onbeforeinput)
838        if not (onbeforematch is None or onbeforematch is False):
839            self._process_attr("onbeforematch", onbeforematch)
840        if not (onbeforetoggle is None or onbeforetoggle is False):
841            self._process_attr("onbeforetoggle", onbeforetoggle)
842        if not (onblur is None or onblur is False):
843            self._process_attr("onblur", onblur)
844        if not (oncancel is None or oncancel is False):
845            self._process_attr("oncancel", oncancel)
846        if not (oncanplay is None or oncanplay is False):
847            self._process_attr("oncanplay", oncanplay)
848        if not (oncanplaythrough is None or oncanplaythrough is False):
849            self._process_attr("oncanplaythrough", oncanplaythrough)
850        if not (onchange is None or onchange is False):
851            self._process_attr("onchange", onchange)
852        if not (onclick is None or onclick is False):
853            self._process_attr("onclick", onclick)
854        if not (onclose is None or onclose is False):
855            self._process_attr("onclose", onclose)
856        if not (oncontextlost is None or oncontextlost is False):
857            self._process_attr("oncontextlost", oncontextlost)
858        if not (oncontextmenu is None or oncontextmenu is False):
859            self._process_attr("oncontextmenu", oncontextmenu)
860        if not (oncontextrestored is None or oncontextrestored is False):
861            self._process_attr("oncontextrestored", oncontextrestored)
862        if not (oncopy is None or oncopy is False):
863            self._process_attr("oncopy", oncopy)
864        if not (oncuechange is None or oncuechange is False):
865            self._process_attr("oncuechange", oncuechange)
866        if not (oncut is None or oncut is False):
867            self._process_attr("oncut", oncut)
868        if not (ondblclick is None or ondblclick is False):
869            self._process_attr("ondblclick", ondblclick)
870        if not (ondrag is None or ondrag is False):
871            self._process_attr("ondrag", ondrag)
872        if not (ondragend is None or ondragend is False):
873            self._process_attr("ondragend", ondragend)
874        if not (ondragenter is None or ondragenter is False):
875            self._process_attr("ondragenter", ondragenter)
876        if not (ondragleave is None or ondragleave is False):
877            self._process_attr("ondragleave", ondragleave)
878        if not (ondragover is None or ondragover is False):
879            self._process_attr("ondragover", ondragover)
880        if not (ondragstart is None or ondragstart is False):
881            self._process_attr("ondragstart", ondragstart)
882        if not (ondrop is None or ondrop is False):
883            self._process_attr("ondrop", ondrop)
884        if not (ondurationchange is None or ondurationchange is False):
885            self._process_attr("ondurationchange", ondurationchange)
886        if not (onemptied is None or onemptied is False):
887            self._process_attr("onemptied", onemptied)
888        if not (onended is None or onended is False):
889            self._process_attr("onended", onended)
890        if not (onerror is None or onerror is False):
891            self._process_attr("onerror", onerror)
892        if not (onfocus is None or onfocus is False):
893            self._process_attr("onfocus", onfocus)
894        if not (onformdata is None or onformdata is False):
895            self._process_attr("onformdata", onformdata)
896        if not (oninput is None or oninput is False):
897            self._process_attr("oninput", oninput)
898        if not (oninvalid is None or oninvalid is False):
899            self._process_attr("oninvalid", oninvalid)
900        if not (onkeydown is None or onkeydown is False):
901            self._process_attr("onkeydown", onkeydown)
902        if not (onkeypress is None or onkeypress is False):
903            self._process_attr("onkeypress", onkeypress)
904        if not (onkeyup is None or onkeyup is False):
905            self._process_attr("onkeyup", onkeyup)
906        if not (onload is None or onload is False):
907            self._process_attr("onload", onload)
908        if not (onloadeddata is None or onloadeddata is False):
909            self._process_attr("onloadeddata", onloadeddata)
910        if not (onloadedmetadata is None or onloadedmetadata is False):
911            self._process_attr("onloadedmetadata", onloadedmetadata)
912        if not (onloadstart is None or onloadstart is False):
913            self._process_attr("onloadstart", onloadstart)
914        if not (onmousedown is None or onmousedown is False):
915            self._process_attr("onmousedown", onmousedown)
916        if not (onmouseenter is None or onmouseenter is False):
917            self._process_attr("onmouseenter", onmouseenter)
918        if not (onmouseleave is None or onmouseleave is False):
919            self._process_attr("onmouseleave", onmouseleave)
920        if not (onmousemove is None or onmousemove is False):
921            self._process_attr("onmousemove", onmousemove)
922        if not (onmouseout is None or onmouseout is False):
923            self._process_attr("onmouseout", onmouseout)
924        if not (onmouseover is None or onmouseover is False):
925            self._process_attr("onmouseover", onmouseover)
926        if not (onmouseup is None or onmouseup is False):
927            self._process_attr("onmouseup", onmouseup)
928        if not (onpaste is None or onpaste is False):
929            self._process_attr("onpaste", onpaste)
930        if not (onpause is None or onpause is False):
931            self._process_attr("onpause", onpause)
932        if not (onplay is None or onplay is False):
933            self._process_attr("onplay", onplay)
934        if not (onplaying is None or onplaying is False):
935            self._process_attr("onplaying", onplaying)
936        if not (onprogress is None or onprogress is False):
937            self._process_attr("onprogress", onprogress)
938        if not (onratechange is None or onratechange is False):
939            self._process_attr("onratechange", onratechange)
940        if not (onreset is None or onreset is False):
941            self._process_attr("onreset", onreset)
942        if not (onresize is None or onresize is False):
943            self._process_attr("onresize", onresize)
944        if not (onscroll is None or onscroll is False):
945            self._process_attr("onscroll", onscroll)
946        if not (onscrollend is None or onscrollend is False):
947            self._process_attr("onscrollend", onscrollend)
948        if not (
949            onsecuritypolicyviolation is None
950            or onsecuritypolicyviolation is False
951        ):
952            self._process_attr(
953                "onsecuritypolicyviolation", onsecuritypolicyviolation
954            )
955        if not (onseeked is None or onseeked is False):
956            self._process_attr("onseeked", onseeked)
957        if not (onseeking is None or onseeking is False):
958            self._process_attr("onseeking", onseeking)
959        if not (onselect is None or onselect is False):
960            self._process_attr("onselect", onselect)
961        if not (onslotchange is None or onslotchange is False):
962            self._process_attr("onslotchange", onslotchange)
963        if not (onstalled is None or onstalled is False):
964            self._process_attr("onstalled", onstalled)
965        if not (onsubmit is None or onsubmit is False):
966            self._process_attr("onsubmit", onsubmit)
967        if not (onsuspend is None or onsuspend is False):
968            self._process_attr("onsuspend", onsuspend)
969        if not (ontimeupdate is None or ontimeupdate is False):
970            self._process_attr("ontimeupdate", ontimeupdate)
971        if not (ontoggle is None or ontoggle is False):
972            self._process_attr("ontoggle", ontoggle)
973        if not (onvolumechange is None or onvolumechange is False):
974            self._process_attr("onvolumechange", onvolumechange)
975        if not (onwaiting is None or onwaiting is False):
976            self._process_attr("onwaiting", onwaiting)
977        if not (onwheel is None or onwheel is False):
978            self._process_attr("onwheel", onwheel)
979        if not (popover is None or popover is False):
980            self._process_attr("popover", popover)
981        if not (slot is None or slot is False):
982            self._process_attr("slot", slot)
983        if not (spellcheck is None or spellcheck is False):
984            self._process_attr("spellcheck", spellcheck)
985        if not (style is None or style is False):
986            self._process_attr("style", style)
987        if not (tabindex is None or tabindex is False):
988            self._process_attr("tabindex", tabindex)
989        if not (translate is None or translate is False):
990            self._process_attr("translate", translate)
991        if not (writingsuggestions is None or writingsuggestions is False):
992            self._process_attr("writingsuggestions", writingsuggestions)

Initialize 'input' (Form control) element.
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

Args: attrs: A list or dictionary of attributes for the element

id:
    The element's ID

class_:
    Classes to which the element belongs

accept:
    Hint for expected file type in file upload controls.  
    Value hint: Set of comma-separated tokens* consisting of valid MIME type strings with no parameters or audio/*, video/*, or image/*

alpha:
    Allow the color's alpha component to be set

alt:
    Replacement text for use when images are not available

autocomplete:
    Hint for form autofill feature.  
    Value hint: Autofill field name and related tokens*

checked:
    Whether the control is checked

colorspace:
    The color space of the serialized color

dirname:
    Name of form control to use for sending the element's directionality in form submission

disabled:
    Whether the form control is disabled

form:
    Associates the element with a form element.  
    Value hint: ID*

formaction:
    URL to use for form submission.  
    Value hint: Valid non-empty URL potentially surrounded by spaces

formenctype:
    Entry list encoding type to use for form submission

formmethod:
    Variant to use for form submission

formnovalidate:
    Bypass form control validation for form submission

formtarget:
    Navigable for form submission.  
    Value hint: Valid navigable target name or keyword

height:
    Vertical dimension

list:
    List of autocomplete options.  
    Value hint: ID*

max:
    Maximum value.  
    Value hint: Varies*

maxlength:
    Maximum length of value

min:
    Minimum value.  
    Value hint: Varies*

minlength:
    Minimum length of value

multiple:
    Whether to allow multiple values

name:
    Name of the element to use for form submission and in the form.elements API

pattern:
    Pattern to be matched by the form control's value.  
    Value hint: Regular expression matching the JavaScript Pattern production

placeholder:
    User-visible label to be placed within the form control

popovertarget:
    Targets a popover element to toggle, show, or hide.  
    Value hint: ID*

popovertargetaction:
    Indicates whether a targeted popover element is to be toggled, shown, or hidden

readonly:
    Whether to allow the value to be edited by the user

required:
    Whether the control is required for form submission

size:
    Size of the control.  
    Value hint: Valid non-negative integer greater than zero

src:
    Address of the resource.  
    Value hint: Valid non-empty URL potentially surrounded by spaces

step:
    Granularity to be matched by the form control's value

title:
    Description of pattern (when used with pattern attribute)

type:
    Type of form control.  
    Value hint: input type keyword

value:
    Value of the form control.  
    Value hint: Varies*

width:
    Horizontal dimension

accesskey:
    Keyboard shortcut to activate or focus element

autocapitalize:
    Recommended autocapitalization behavior (for supported input methods)

autocorrect:
    Recommended autocorrection behavior (for supported input methods)

autofocus:
    Automatically focus the element when the page is loaded

contenteditable:
    Whether the element is editable

dir:
    The text directionality of the element

draggable:
    Whether the element is draggable

enterkeyhint:
    Hint for selecting an enter key action

hidden:
    Whether the element is relevant

inert:
    Whether the element is inert.

inputmode:
    Hint for selecting an input modality

is_:
    Creates a customized built-in element.  
    Value hint: Valid custom element name of a defined customized built-in element

itemid:
    Global identifier for a microdata item.  
    Value hint: Valid URL potentially surrounded by spaces

itemprop:
    Property names of a microdata item

itemref:
    Referenced elements

itemscope:
    Introduces a microdata item

itemtype:
    Item types of a microdata item

lang:
    Language of the element.  
    Value hint: Valid BCP 47 language tag or the empty string

nonce:
    Cryptographic nonce used in Content Security Policy checks [CSP]

onauxclick:
    auxclick event handler.  
    Value hint: Event handler content attribute

onbeforeinput:
    beforeinput event handler.  
    Value hint: Event handler content attribute

onbeforematch:
    beforematch event handler.  
    Value hint: Event handler content attribute

onbeforetoggle:
    beforetoggle event handler.  
    Value hint: Event handler content attribute

onblur:
    blur event handler.  
    Value hint: Event handler content attribute

oncancel:
    cancel event handler.  
    Value hint: Event handler content attribute

oncanplay:
    canplay event handler.  
    Value hint: Event handler content attribute

oncanplaythrough:
    canplaythrough event handler.  
    Value hint: Event handler content attribute

onchange:
    change event handler.  
    Value hint: Event handler content attribute

onclick:
    click event handler.  
    Value hint: Event handler content attribute

onclose:
    close event handler.  
    Value hint: Event handler content attribute

oncontextlost:
    contextlost event handler.  
    Value hint: Event handler content attribute

oncontextmenu:
    contextmenu event handler.  
    Value hint: Event handler content attribute

oncontextrestored:
    contextrestored event handler.  
    Value hint: Event handler content attribute

oncopy:
    copy event handler.  
    Value hint: Event handler content attribute

oncuechange:
    cuechange event handler.  
    Value hint: Event handler content attribute

oncut:
    cut event handler.  
    Value hint: Event handler content attribute

ondblclick:
    dblclick event handler.  
    Value hint: Event handler content attribute

ondrag:
    drag event handler.  
    Value hint: Event handler content attribute

ondragend:
    dragend event handler.  
    Value hint: Event handler content attribute

ondragenter:
    dragenter event handler.  
    Value hint: Event handler content attribute

ondragleave:
    dragleave event handler.  
    Value hint: Event handler content attribute

ondragover:
    dragover event handler.  
    Value hint: Event handler content attribute

ondragstart:
    dragstart event handler.  
    Value hint: Event handler content attribute

ondrop:
    drop event handler.  
    Value hint: Event handler content attribute

ondurationchange:
    durationchange event handler.  
    Value hint: Event handler content attribute

onemptied:
    emptied event handler.  
    Value hint: Event handler content attribute

onended:
    ended event handler.  
    Value hint: Event handler content attribute

onerror:
    error event handler.  
    Value hint: Event handler content attribute

onfocus:
    focus event handler.  
    Value hint: Event handler content attribute

onformdata:
    formdata event handler.  
    Value hint: Event handler content attribute

oninput:
    input event handler.  
    Value hint: Event handler content attribute

oninvalid:
    invalid event handler.  
    Value hint: Event handler content attribute

onkeydown:
    keydown event handler.  
    Value hint: Event handler content attribute

onkeypress:
    keypress event handler.  
    Value hint: Event handler content attribute

onkeyup:
    keyup event handler.  
    Value hint: Event handler content attribute

onload:
    load event handler.  
    Value hint: Event handler content attribute

onloadeddata:
    loadeddata event handler.  
    Value hint: Event handler content attribute

onloadedmetadata:
    loadedmetadata event handler.  
    Value hint: Event handler content attribute

onloadstart:
    loadstart event handler.  
    Value hint: Event handler content attribute

onmousedown:
    mousedown event handler.  
    Value hint: Event handler content attribute

onmouseenter:
    mouseenter event handler.  
    Value hint: Event handler content attribute

onmouseleave:
    mouseleave event handler.  
    Value hint: Event handler content attribute

onmousemove:
    mousemove event handler.  
    Value hint: Event handler content attribute

onmouseout:
    mouseout event handler.  
    Value hint: Event handler content attribute

onmouseover:
    mouseover event handler.  
    Value hint: Event handler content attribute

onmouseup:
    mouseup event handler.  
    Value hint: Event handler content attribute

onpaste:
    paste event handler.  
    Value hint: Event handler content attribute

onpause:
    pause event handler.  
    Value hint: Event handler content attribute

onplay:
    play event handler.  
    Value hint: Event handler content attribute

onplaying:
    playing event handler.  
    Value hint: Event handler content attribute

onprogress:
    progress event handler.  
    Value hint: Event handler content attribute

onratechange:
    ratechange event handler.  
    Value hint: Event handler content attribute

onreset:
    reset event handler.  
    Value hint: Event handler content attribute

onresize:
    resize event handler.  
    Value hint: Event handler content attribute

onscroll:
    scroll event handler.  
    Value hint: Event handler content attribute

onscrollend:
    scrollend event handler.  
    Value hint: Event handler content attribute

onsecuritypolicyviolation:
    securitypolicyviolation event handler.  
    Value hint: Event handler content attribute

onseeked:
    seeked event handler.  
    Value hint: Event handler content attribute

onseeking:
    seeking event handler.  
    Value hint: Event handler content attribute

onselect:
    select event handler.  
    Value hint: Event handler content attribute

onslotchange:
    slotchange event handler.  
    Value hint: Event handler content attribute

onstalled:
    stalled event handler.  
    Value hint: Event handler content attribute

onsubmit:
    submit event handler.  
    Value hint: Event handler content attribute

onsuspend:
    suspend event handler.  
    Value hint: Event handler content attribute

ontimeupdate:
    timeupdate event handler.  
    Value hint: Event handler content attribute

ontoggle:
    toggle event handler.  
    Value hint: Event handler content attribute

onvolumechange:
    volumechange event handler.  
    Value hint: Event handler content attribute

onwaiting:
    waiting event handler.  
    Value hint: Event handler content attribute

onwheel:
    wheel event handler.  
    Value hint: Event handler content attribute

popover:
    Makes the element a popover element

slot:
    The element's desired slot

spellcheck:
    Whether the element is to have its spelling and grammar checked

style:
    Presentational and formatting instructions.  
    Value hint: CSS declarations*

tabindex:
    Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation

translate:
    Whether the element is to be translated when the page is localized

writingsuggestions:
    Whether the element can offer writing suggestions or not.
tag = 'input'
categories = ['flow', 'phrasing', 'interactive*', 'listed', 'labelable', 'submittable', 'resettable', 'form-associated', 'palpable*']
36    class hint(GlobalAttrs, InputAttrs):
37        """
38        Type hints for "input" attrs  
39        This class holds functions which return BaseAttributes  
40        Which you can add to your element attrs  
41        """  # fmt: skip
42
43        pass

Type hints for "input" attrs
This class holds functions which return BaseAttributes
Which you can add to your element attrs