solid icon indicating copy to clipboard operation
solid copied to clipboard

JSX SVG Typescript type error: missing 'slot' attribute

Open apprat opened this issue 10 months ago • 0 comments

Describe the bug

Image

Your Example Website or App

none

Steps to Reproduce the Bug or Issue

function App() {
  return (
    <>
      <s-button>
        <svg slot="start" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">
          <path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"></path>
        </svg>
      </s-button>
    </>
  )
}

Expected behavior

The slot attribute should be added optionally as slot?: string in the interface SvgSVGAttributes {}.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

apprat avatar Feb 17 '25 08:02 apprat