Skip to content

all slots end up in default slot when mixing TSX and SFC #10690

Discussion options

You must be logged in to vote
{{
  default: () => <p>Here is the default</p>,
  foo: () => <p>I am in the foo slot</p>,
}}

App.tsx component is not using proper JSX/TSX syntax. Here is working example > https://stackblitz.com/edit/vue3-tsx-vc8vsd?file=src%2FApp.tsx


Reference: https://github.com/vuejs/babel-plugin-jsx?tab=readme-ov-file#slot

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@julisch94
Comment options

Answer selected by julisch94
Comment options

You must be logged in to vote
1 reply
@julisch94
Comment options

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