To build a long floating shelf that won’t bend:
use dense wood (like oak or maple) and sturdy steel brackets.
install a hidden wood cleat or metal brackets attached to the wall.
attach a thicker front edge to the shelf for added rigidity.
place heavier items near the supports, not in the center.
if the shelf is very long, consider splitting it into sections.
this will keep your shelf strong and prevent sagging.