Replies: 2 comments 1 reply
-
Assuming you don't want to add defaults to the component itself. You can use a lambda slot that returns a component with some preset default values. Possible combining with default arguments for the lambda. See the second example in the first code block in the Lambda Slot documentation: https://viewcomponent.org/guide/slots.html#lambda-slots. |
Beta Was this translation helpful? Give feedback.
1 reply
-
As of |
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.
-
I define a slot to be a specific component, is there a way to specify default for some options so I don't have to keep adding them each time I use the component?
Beta Was this translation helpful? Give feedback.
All reactions