Install UI Kit
At the core of your project, you will need to import and decorate your application with the
UiKitProvider
.import { UiKitProvider } from ‘@amityco/ui-kit’
export default function App() {
return <UiKitProvider>
<YourApp />
</UiKitProvider>
}
AmityUIKit already includes our SDK. Don’t install AmitySDK separately if you have already installed the UIKit.
You can use the UIKit components with this code:
<AmityUiKitProvider key={userId} apiKey={apiKey} userId={userId}>
<AmityUiKitSocial />
</AmityUiKitProvider>
Last modified 1yr ago