How to export class
using svelte 5 props()?
#11351
-
Hi i used to implement this pattern in svelte 4 <script lang='ts'>
let klass="";
export {klass as class};
</script>
Is this pattern doable in svelte 5? |
Beta Was this translation helpful? Give feedback.
Answered by
Conduitry
Apr 28, 2024
Replies: 1 comment 1 reply
-
Yes. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
baseplate-admin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes.
let { class: klass } = $props()
.