How to use dynamic values like page route params in custom component props?

Is there a way to use dynamic values as default values in custom components fields? I would like to use one of the page route params as a default dynamic value in one of our custom components.

Yes, you can just reference $ctx.params.X