banira
    Preparing search index...

    Function scaffoldComponent

    • Generates the files for a starter vanilla web component: a TypeScript source file (shadow DOM, an observed attribute/property, an event, and the @slot / @csspart / @cssprop / @fires jsdoc tags banira's manifest and doc tooling read) plus a demo HTML page wired for banira serve. With { formAssociated: true } it scaffolds a form-associated element instead (static formAssociated = true + ElementInternals form/validation wiring), and { aria: true } scaffolds an ARIA role/state-reflecting element (ElementInternals.role/ariaChecked wiring). formAssociated and aria are distinct starters; pass one or the other.

      Parameters

      Returns ScaffoldFile[]

      Error if tagName is not a valid custom element name.