Additional properties #6673
Unanswered
TomCodePeople
asked this question in
Help/Questions
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I am creating a Custom Element with Vue 3. Is it possible to have additional unknown properties (to components)?
For example the element html:
<custom-element-name known-prop1="file.json" known-prop2="test" prop3="YES">
// Setup script (not working)
When I use it like above it will not pass the prop
prop3
and gives a warning:Extraneous non-props attributes (prop3) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
Is it possible to get this work where prop3 is passed?
The use case:
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions