Replies: 1 comment 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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