If you want to get inspired by good component DX, try looking at Bevy, the game engine.
But essentially it comes down to traits, newtypes/enum variants, and macros.