PCA

I came across some resources where PCA was used to break down the returns of a portfolio and attribute it to different factors. However I am not able to wrap my head around how the individual principal components are mapped to different factors. What methodology is used to attribute factors to the PCs. Can anyone suggest some resource where I can read more about this?