Web React
Quick Start Guide for Integrating Social Plus UIKit's Social Feature into React Applications.
Last updated
Was this helpful?
Quick Start Guide for Integrating Social Plus UIKit's Social Feature into React Applications.
Last updated
Was this helpful?
Welcome to the Quick Start Guide for integrating Social Plus features into your existing React application. This guide provides step-by-step instructions to incorporate social features into your app, enhancing user engagement through shared experiences.
Before getting started, ensure that you have the following prerequisites installed on your system:
LTS version (currently version 20)
version 8
Ref: https://pnpm.io/installation#using-corepack
Install UIKit via PNPM
To integrate Social+ UI-Kit into your application, follow these steps:
Import the main UI-Kit styles (Required) Add the following import statement in your main application file:
Customize UI-Kit (Optional)
If you want to customize component styles, create a configuration file named amity-uikit.config.json
and define your theme colors.
Wrap your application with <AmityUiKitProvider>
In your main application component, wrap your content with AmityUiKitProvider
and pass the required configurations.
note : apiEndpoint not required if using default endpoints
Social Plus UIKit supports extensive customization options via a config.json file. You can modify themes, colors, and icons for various components and elements of the social feature according to your application's design requirements.
Example customization snippet:
You can exclude certain UI elements or customize specific components and elements as per your needs.
You have now successfully integrated the Social Plus feature into your Web application. For further customization options, refer to the detailed documentation provided with the SDK. If you encounter any issues or require assistance, our community forum at community.amity.co is always here to help.
With open source, developers have more flexibility and greater customization options, allowing you to have complete control over the visual style. Open sourcing allows for more transparency and visibility, and enables contributions from a greater developer community in terms of good design, implementation, code improvement, and fixes, translating into a better product and development experience.
Ref: https://pnpm.io/installation#using-corepack
To run Storybook and view the UI components in isolation, follow these steps:
Clone the Amity UI-Kit repository:
Navigate to the cloned repository's directory:
Install the dependencies using pnpm:
Create a .env
file at the root of the project with the following content:
Replace <API_REGION>
and <API_KEY>
with your actual credentials.
Run Storybook:
Open your browser and navigate to http://localhost:6006
to view the Storybook interface.
To install the Amity UI-Kit together with another project, follow these steps:
Clone the repository using the following command:
Navigate to the cloned repository's directory:
Install the dependencies using pnpm:
Build the project:
Navigate to your application's directory:
Link the Amity UI-Kit repository to your application using one of the following package managers:
NPM:
Yarn (Classic):
PNPM: