Skip to content

Hint in custom places, attributes #350

Closed
@VottusCode

Description

@VottusCode

This is a feature proposal for class hinting in other places than class|className.

Attributes

I'd like for custom html attributes to also have the hinting ability, maybe in .vscode/settings.json, there could be something like tailwindcss.attributes.custom: ["tw", "attr"].

One good example for this use case is props in modern JS frameworks, or twin.macro which has the custom tw attribute.

Custom Places

For example, by adding /* @tw */ in above line, it would indicate that the string below is supposed to be hinted, for example:

/* @tw */
const classes = "bg-"

Another way would be a shortcut to automatically trigger the hinting.

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