Overview:
Domparty is a white label component library that provides functional components for styling websites. It allows users to customize the styling of their website without any bias. The library can be easily installed using npm and provides options for integration with different frameworks like React and Next.js. It also supports server-side rendering to ensure consistent styling across different platforms.
Features:
- White label component library
- Customizable styling for websites
- Integration with different frameworks like React and Next.js
- Support for server-side rendering
Installation:
To install the Domparty component library, use the following command:
npm i @domparty/fe
If you are using Preact, import the provider from @domparty/fe/core/preact instead of @domparty/fe/core.
For default React apps, use the following import statement:
import { Provider } from '@domparty/fe/core/preact';
For Next.js apps, make sure to implement the component in the _app.js file.
To enable server-side rendering, use the getInitialProps function in your _document file.
Summary:
Domparty is a versatile component library that allows users to style their websites with ease. It provides a range of functional components that can be customized to suit the user’s preferences. The library is easy to install and integrates seamlessly with different frameworks like React and Next.js. It also supports server-side rendering to ensure consistent styling across different platforms.