Astro components
Is it possible to pass complex objects into astro components as props?
3 Replies
not experienced with astro, but you might want to provide an example of what you would like to acchieve
For example take this hypothetical icon component:
is there a way to make that work?
Yes what you’re trying to do is very simple in Astro. See the docs here https://docs.astro.build/en/basics/astro-components/#component-based-design