0.3.1 • Published 11 months ago

@highoutput/hds-carousel v0.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Getting started

We aim to build a library of custom ReactJS components that implements our unique UI design conventions. The ReactJS components will be based primarily on Chakra UI components. React Storybook will be used for documentation and testing.

Commands

To install the package, use:

npm i @highoutput/hds-carousel

Usage

import { Carousel, withCarousel } from "@highoutput/hds-carousel";
import { ThemeProvider, extendTheme, AspectRatio, Image } from "@highoutput/hds";

const items: { image: string }[] = [
  /* data here... */
];

export default function Example() {
  return (
    <ThemeProvider theme={extendTheme(withCarousel())}>
      <Carousel
        loop
        autoPlay
        size="md"
        variant="dot"
        isSwipeable
        wrapIndicator
        items={items}
        width="600px"
      >
        {({ image }) => (
          <AspectRatio height="350px" ratio={16 / 9}>
            <Image src={image} alt="" />
          </AspectRatio>
        )}
      </Carousel>
    </ThemeProvider>
  );
}
0.3.1

11 months ago

0.2.1

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.0

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago