marekrozmus / react-swipeable-list

Swipeable list component for React supporting several behaviours (e.g. iOS)
https://marekrozmus.github.io/react-swipeable-list/
MIT License
110 stars 20 forks source link

Add className property to SwipeableListProps for grid alignment needs #30

Closed elmesaoudee closed 1 year ago

elmesaoudee commented 1 year ago

I added className property to SwipeableListProps in order to make it adaptable to grid systems. I use the library with tailwind and I found out that SwipeableList needs to have className property in order to behave like a "col".

The className property was already taken into consideration in the code, it just was not declared in SwipeableListProps which resulted in an error since I'm using typescript.

Kindly accept the PR.

Best regards.

marekrozmus commented 1 year ago

@all-contributors please add @elmesaoudee for code

@elmesaoudee Thank you!

allcontributors[bot] commented 1 year ago

@marekrozmus

I've put up a pull request to add @elmesaoudee! :tada:

marekrozmus commented 1 year ago

@elmesaoudee New version 1.7.1 released :)

elmesaoudee commented 1 year ago

Awesome! Thanks guys :)