Skip to content

Twig Components HTML Syntax properties autocomplete not working #2465

@Ardenexal

Description

@Ardenexal

Firstly, love the plugin and all the work that has gone into it.

I am just starting to use the new Symfony UX Twig components using the HTML syntax, and for the most part, the plugin is working great. The one issue I have run into is that the properties for the component are not populating for the autocomplete when I use one of the components.

The autocomplete for the list of components works

Image

But for the properties, I only see

Image

The component itself is quite simple

#[AsTwigComponent(name: 'Alert', template: 'components/Alert.html.twig')]
class AlertComponent
{
    public AlertType $type = AlertType::Info;

    public string $message = '';
}

I've tried using the #[ExposeInTemplate] attribute as well, but it did not show in the auto-complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions