html_compose.elements.button_element

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

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

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

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

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

id:
    The element's ID

class_:
    Classes to which the element belongs

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

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

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

type:
    Type of button

value:
    Value to be used for form submission

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

title:
    Advisory information for the element

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

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

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