Install UI Kit

The UiKitProvider

At the core of your project, you will need to import and decorate your application with the UiKitProvider.
1
import { UiKitProvider } from ‘@amityco/ui-kit’
2
3
export default function App() {
4
return <UiKitProvider>
5
<YourApp />
6
</UiKitProvider>
7
}
Copied!
AmityUIKit already includes our SDK. Don’t install AmitySDK separately if you have already installed the UIKit.

Using the UIKit

You can use the UIKit components with this code:
1
<AmityUiKitProvider key={userId} apiKey={apiKey} userId={userId}>
2
<AmityUiKitSocial />
3
</AmityUiKitProvider>
Copied!
Check this sample code in our web sample application.
Last modified 26d ago