How to create curvy linerenderers?

Is it even possible to make a linerenderer curvy? I think I’ll have to deal with Mathf.Sin functions but I don’t know where to start.

I think this can be achieved with splines or DrawBezier.
You could also check this prefab.