How can make a slider vertical or horizontal with button options?

i am trying to create an slider that works with buttons when i move the slider change the option of the list of buttons. i know that exist the slider component. but i cant make to work.

Study how this works ...