Skip to content

Merge Classes in Svelte #14259

@K1ender

Description

@K1ender

Describe the problem

In Svelte, when passing class attributes from a parent component to a child component, the behavior does not automatically merge classes as it does in Vue.js. This can lead to situations where classes defined in the parent are not combined with classes defined in the child, especially when the child component has its own predefined classes.

Describe the proposed solution

I would like Svelte to automatically merge class attributes passed from a parent component to a child component, similar to how Vue.js handles class merging.

Importance

would make my life easier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions