[✨] fall through attributes #166
agufagit
started this conversation in
Proposals For Qwik
Replies: 2 comments
-
|
Hey @agufagit, thanks for opening this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
We moved this issue to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
like v-bind="$attrs" in vue, {...$$restprops} in svelte, and splitprops in solid
right now Qwik shows error when specify attributes not in props type definition
the error is
Property 'id' does not exist on type 'IntrinsicAttributes & TransformProps<IButtonProps> & ComponentBaseProps & { children?: JSXChildren; }Describe the solution you'd like
attributes defined other than the ones in props are automatically fall through to a variable like
restprops, and there is a way to bind thisrestpropsto a html elementDescribe alternatives you've considered
or do it like splitprops in solid
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions