class CustomFileUpload extends HTMLElement { connectedCallback() { const onClose = this.getAttribute('onClose'); const onUploadComplete = this.getAttribute('onUploadComplete'); this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
Click to upload or drag and drop
PDF, DOCX up to 10MB
\${file.name}
\${formatFileSize(file.size)}