Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX SVG Typescript type error: missing 'slot' attribute #2427

Open
apprat opened this issue Feb 17, 2025 · 0 comments
Open

JSX SVG Typescript type error: missing 'slot' attribute #2427

apprat opened this issue Feb 17, 2025 · 0 comments

Comments

@apprat
Copy link

apprat commented Feb 17, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant