I'm not sure why there's a direction attribute. Though, it looks like it's in the JS implementation.
vertical / horizontal would have made sense.