Welcome to the Shadcn/UI - Animated Tabs Styles repository! This project is a Next.js application that showcases a modified version of the Shadcn tab component with added animations, providing a smooth and visually appealing user experience.
Shadcn/UI - Animated Tabs is an open-source project that demonstrates how to add animations to the default Shadcn tab component. By integrating animated transitions, the project aims to enhance the user experience with smoother and more engaging tab interactions. The application is built using Next.js, and it includes a theme switcher to dynamically adapt to light and dark themes.
- Animated Tabs: The tab component is enhanced with smooth animations when switching between tabs.
- Dynamic Theming: Tabs adapt seamlessly to the selected theme using Shadcn's CSS variables.
- Next.js Framework: Built with Next.js for server-side rendering and optimized performance.
- Customizable Animations: Easily modify the animations to suit your needs.
- Theme Switching: Includes a theme switcher component to effortlessly toggle between light and dark themes.
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/list-jonas/shadcn-ui-animated-tabs.git cd shadcn-ui-animated-tabs
-
Install dependencies:
npm install # or yarn install
-
Run the development server:
npm run dev # or yarn dev
-
Open your browser: Navigate to http://localhost:3000 to see the application in action.
To use this project, follow these steps:
-
Explore the tabs:
- Interact with the tabs to see the smooth animations between content transitions.
- Switch between themes to see how the styles adapt.
-
Modify the animations:
- Customize the tab animations by modifying the JavaScript in the file located at
src/components/ui/tabs.tsx
.
- Customize the tab animations by modifying the JavaScript in the file located at
-
Integrate into your own project:
- Use the code and animation styles as a reference or starting point for integrating animated tabs into your own Next.js application.
Contributions are welcome! If you have any suggestions, bug reports, or improvements, please feel free to create an issue or submit a pull request.
-
Fork the repository: Click the "Fork" button on the top right corner of this page to create a copy of this repository under your GitHub account.
-
Clone the forked repository:
git clone https://github.com/list-jonas/shadcn-ui-animated-tabs.git cd shadcn-ui-animated-tabs
-
Create a new branch:
git checkout -b your-branch-name
-
Make your changes: Implement your changes and commit them with descriptive messages.
-
Push your changes:
git push origin your-branch-name
-
Create a pull request: Go to the original repository and create a pull request with a description of your changes.
This project is licensed under the MIT License. See the LICENSE file for more details.
Created by Jonas. For more projects and information, visit Jonas' Website.
Check out the live preview of the site here.
Thank you for checking out Shadcn/UI - Animated Tabs Styles! We hope this project serves as a useful reference for adding animations to the Shadcn tab component. If you have any questions or feedback, feel free to reach out. Happy coding!