Skip to content

Remove prop shorthand #20

@NullVoxPopuli

Description

@NullVoxPopuli
<button disabled={disabled}>...</button>
<button {disabled}>...</button>

This takes a whole syntax away that we could otherwise use for modifiers/directives.
To attach behavior to an element, we'd want to do something like:

<input {autofocus disabled=!@isVisible}>

where autofocus is an element modifier, which wires up some light sogic for when to focus the element example implementation here.

interactive demo

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