Skip to content

Shorthand for false props #8549

@jameslkingsley

Description

@jameslkingsley

What problem does this feature solve?

There's already a nice shorthand for true props where you just add the prop name on its own, however there isn't an equivilent shorthand for false props. Below are a couple suggestions for that shorthand that would make writing/reading these props easier I think. It's a pretty minor feature request, but I think it would add to the already amazing developer experience of using Vue.

What does the proposed API look like?

<component !prevent /> translates to <component :prevent="false" />

<component :not-prevent /> translates to <component :prevent="false" />

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