Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 18, 2025

This replaces [key: string]: unknown; in the Props interfaces with HTMLAttributes<HTMLDivElement>. That allows us to get proper auto-completion for the regular HTML element props.

This PR also ensures that the class attributes of the components are merged correctly when passed in from the outside.

@Turbo87 Turbo87 requested a review from a team December 18, 2025 20:12
Copy link
Contributor

@eth3lbert eth3lbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small nit regarding the class attribute. :D

@Turbo87 Turbo87 merged commit cfefa00 into rust-lang:main Dec 19, 2025
12 checks passed
@Turbo87 Turbo87 deleted the svelte-props branch December 19, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants