IKAROS handled that by spinning very slowly to remain rigid with centrifugal force. To be practical you really can't have one single structure but a swarm of medium sized shades would work much better.
If by medium size your thinking ~1km^2 then sure. But, much smaller than that you you start talking about billions of these things. Keeping them properly aligned and not shading each other would be a non trivial challenge.