react-teahouse
v1.0.0
Published
<a id="readme-top"></a>
Readme
About The Project
A simple react carousel
Getting Started
This is a simple carousel component to be used in react
Install the package
npm install react-teahousePrepare a list of items of the following type
export type Item = {
id: number;
title: string;
subtitle?: string;
intro: string;
desc: string;
src: string;
};
srccould be either a path to an image in the /public folder (example: some_path/my_image.png) or a url to a transparent image
Try out your first component
import { Carousel } from "react-teahouse";
import { items } from "./resources/items.json";
export const App = () => {
return (
<Carousel listItems={items}/>
)Roadmap
- [ ] Add Changelog
- [ ] Add text position options
Contributing
Feel free to open issues, add features or fix bugs. Any contributions you make are greatly appreciated. Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Contact
Samuel - https://linkedin.com/in/samwmd
Github Link: https://github.com/sam-wmd/react-teahouse
Acknowledgments
The OG creator 🐐: Lundev
