I don't understand how a component library would be AI-proof in a way CSS templates are not.
HeroUI faces the same problem, and now their React Native library includes an optional (paid) conpiler solution that makes it faster.
MUI has the same problem but besides templates they have their MUI X data components which aren't limited in complexity to what can be ergonomically copy and pasted to a clipboard.