This project provides a fully responsive sidebar, built with Next.js, TypeScript, Tailwind CSS, ShadCN, and Lucide Icons. It is highly customizable and designed to work seamlessly across different devices, ensuring a consistent user experience whether on desktop or mobile.
You can view a live demo of the responsive sidebar here.
- Responsive Design: The sidebar adapts to different screen sizes using Tailwind CSS, providing a consistent experience across devices.
- Next.js with TypeScript: Built using Next.js and TypeScript, enabling strong typing and modern web development practices.
- ShadCN UI Components: Utilizes ShadCN components for a sleek and modern design.
- Lucide Icons: Incorporates Lucide Icons for a clean and lightweight icon set.
- Toggle Button: A built-in toggle button allows the sidebar to be shown or hidden, enhancing usability on smaller screens.
- Smooth Animations: Includes smooth transitions for an enhanced user experience.
- Cross-Browser Compatibility: Works seamlessly across all major web browsers.
- Next.js: Framework for server-side rendering and static site generation.
- TypeScript: Strongly typed programming language that builds on JavaScript.
- Tailwind CSS: Utility-first CSS framework for custom designs.
- ShadCN: Component library for building user interfaces.
- Lucide Icons: Icon library offering a wide range of lightweight icons.
-
Clone the repository:
git clone https://github.com/sulaimanbiswas/fully-responsive-sidebar.git
-
Navigate to the project directory:
cd fully-responsive-sidebar
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
- Open the project in your preferred code editor.
- Customize the sidebar by editing the relevant components and styling as needed.
- Add your own content to the sidebar and main content area as required.
- Colors: Modify the color scheme by updating the Tailwind CSS utility classes in the components or in the global styles.
- Width: Adjust the sidebar width by changing the Tailwind CSS width classes (e.g.,
w-64
,w-1/4
, etc.) in the component files. - Icons: Replace or customize icons using Lucide Icons by importing the desired icons and using them in the sidebar.
- Add or remove menu items in the sidebar by modifying the JSX structure in the Next.js TypeScript components.
- Adjust the responsiveness by customizing Tailwind CSS breakpoints and media queries in the global configuration or directly in the component files.
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.
- Fork the repository
- Create a new branch:
git checkout -b feature/YourFeature
- Make your changes
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/YourFeature
- Submit a pull request
This project is licensed under the MIT License. See the LICENSE file for more information.