0.3.2 • Published 2 years ago

next-gen-scrollable-containers v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Scrollable Containers

That package is still in progress, however it is available for simple use cases.

Options

<Carousel
  fullWidth
  fullHeight
  className="test"
  height="200px"
  width="200px"
  horizontal
  vertical
  disableListDefaultStyles
  pagination
  paginationArrowColor="#AEAEAE"
>
  // ....
</Carousel>

width (string)

The width should be formatted like this 200px and will override the fullWidth if used together

height (string)

The height should be formatted like this 200px and will override the fullHeight if used together

fullWidth (boolean)

The fullWidth prop will make width 100vw

fullHeight (boolean)

The fullHeight prop will make height 100vh

className (string)

The className prop will be added to the Carousel and can add some custom styling. NOTE: In order to override some of the default styling you will need to add !important

horizontal (boolean)

The horizontal prop is by default true and that make the carousel to be horizontal. At the moment is available for testing purposes, and might be removed in the future since that is the default behavior.

vertical (boolean)

The vertical prop gives you the option to have a vertical scrollable container, and will override horizontal

pagination (string)

Pagination is a boolean value that adds arrows in order to navigate the container. The pagination method only works for horizontal containers.

paginationArrowColor (string)

paginationArrowColor accept a hex string value in order to update the color of the pagination arrows

disableListDefaultStyles (boolean)

At the moment we are using disableListDefaultStyles flag in order to disable the default list styles. The flag is by default true, in order to allow the use of custom styling, however if you want a simple carousel with predefined background colors, you can set disableListDefaultStyles to false, in order to apply the default styling. This flag will be removed in the future.

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago