Sharing some code/pseudo-code would help give an answer that’s more tailored to your specific situation, but it sounds like regular Phoenix Components or Phoenix Live Components fit your use case.
There’s a few discussions on when to use one over the other in the forum (e.g., here)
Both approaches would have you pass the data in the assigns
map.