menu

react-id-swiper

Discussion for bugs and new features

Channels
Team

Hello guys, how do I set the slidePerView to auto.

February 24, 2020 at 6:20am

Hello guys, how do I set the slidePerView to auto.

February 24, 2020 at 6:20am
const Navigation = ({ links }) => { const params = { slidesPerView: "auto", loop: false }; return ( <div className="tabs-navigation"> <Swiper {...params} className="tabs"> {links.map(({ id, name, url }) => ( <li key={id} className="tab-link"> <NavLink exact to={url}> {name} </NavLink> </li> ))} </Swiper> </div> ); };
export default Navigation;
In the code above, I wanted to create a swipable Navigation tabs but for some reason, setting the slidesPerView to auto isn't working
No messages yet