I'd suggest looking at the internal implementation and see if you got some way to pass a modifier to the content slot there.
If not, copy-paste the entire implementation and do your adjustments as needed.
With that said, having a horizontally scrollable bottom navigation bar would be a super awkward user experience. Same with nav rail.