TimeChimp React Component Library
Tacugama is a set of React components that seamlessly integrate with the TimeChimp UI. It offers both client-side and server-side rendering options through the use of its ThemeProvider and custom files. It provides a hassle-free solution for developers to implement the Tacugama UI in their apps.
To integrate Tacugama with client-side rendering, perform the following steps:
import { TacugamaThemeProvider } from 'tacugama';
function App() {
return (
<TacugamaThemeProvider>
{/* Your app components */}
</TacugamaThemeProvider>
);
}
To implement Tacugama with server-side rendering using Next.js, follow these steps:
Step 1: Create a custom _app.jsx file and wrap the Component with the Tacugama ThemeProvider:
import { TacugamaThemeProvider } from 'tacugama';
function MyApp({ Component, pageProps }) {
return (
<TacugamaThemeProvider>
<Component {...pageProps} />
</TacugamaThemeProvider>
);
}
export default MyApp;
Step 2: Create a custom _document.jsx file and set it up as follows:
import Document, { Html, Head, Main, NextScript } from 'next/document';
import { TacugamaCSSTheme } from 'tacugama';
class MyDocument extends Document {
render() {
return (
<Html>
<Head>
<link rel="stylesheet" href={TacugamaCSSTheme} />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;
For a full list of available components and their usage, refer to the Tacugama Storybook.
Tacugama is a collection of React components designed to seamlessly integrate with the TimeChimp UI. It provides an easy installation process, detailed guides for both client-side and server-side rendering, a ThemeProvider for simplified component usage, and a range of pre-built components to enhance the app's UI. Developers can explore all available components and their functionalities in the Tacugama Storybook. Additionally, the CI/CD pipeline handles automatic releases based on version number updates in the package.json file.
React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components
A UI kit provides developers with a set of reusable components that can be easily integrated into a website or application. These components are pre-designed with consistent styling and functionality, allowing developers to save time and effort in the design and development process. UI kits can be either custom-built or third-party, and often include components for buttons, forms, typography, icons, and more.
ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.
TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.