Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorthand syntax for props #3

Closed
arnoson opened this issue Sep 18, 2023 · 1 comment
Closed

Shorthand syntax for props #3

arnoson opened this issue Sep 18, 2023 · 1 comment

Comments

@arnoson
Copy link
Owner

arnoson commented Sep 18, 2023

Would be cool to have something like Svelte's shorthand syntax for props where the prop name and the variable have the same name:

<!-- svelte -->
<component myProp="{myProp}" />
<component {myProp} />

Maybe something like this:

<snippet:fu @myProp="$myProp"  />
<snippet:fu @myProp  />
@arnoson
Copy link
Owner Author

arnoson commented Nov 24, 2023

added in 269799b

@arnoson arnoson closed this as completed Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant