swiper-x-axis
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Swiper X Axis

A scrollable, horizontally laid out chip/swiper component with optional icons and count bubbles. Supports smooth scrolling, hover-based scroll buttons, and styling props.

Installation

npm install swiper-x-axis

Usage

import { SwiperSectionXAxsis } from 'swiper-x-axis';

<SwiperSectionXAxsis
  items={[
    { name: 'All', value: 'all' },
    { name: 'Images', value: 'img', image: '/img.png' },
    { name: 'Videos', value: 'vid', count: 10 },
  ]}
  handleClick={(val) => console.log(val)}
  textSize={1}
/>

Props

Prop Type Description
items CategoryItem[] Array of categories
handleClick `(value: string number) => void`
textSize? number Optional scaling factor
activeChipColor? string Color for active chip
activeTextColor? string Color for active chip text
chipBgColor? string Default chip background color
chipTextColor? string Default chip text color

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i swiper-x-axis

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

12.1 kB

Total Files

8

Last publish

Collaborators

  • bhaskarbonu