Skip to content

CSS class passed to component is marked as unused #15244

@joelmukuthu

Description

@joelmukuthu

Describe the bug

When a CSS class is passed to a component, as opposed to a native element, it's marked as unused. See reproduction for more info.

Reproduction

https://svelte.dev/playground/472773f8569a4655b441465d2f139345?version=5.19.9

Logs

System Info

Svelte: 5.19.9
Node: 22.13.1

Severity

annoyance

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