Installing UI Kit (deprecated)

circle-exclamation

The UiKitProvider

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>
}
circle-exclamation

Using the UIKit

You can use the UIKit components with this code:

<AmityUiKitProvider key={userId} apiKey={apiKey} userId={userId}>
    <AmityUiKitSocial />
</AmityUiKitProvider>
circle-info

Check this sample codearrow-up-right in our web sample application.

Last updated

Was this helpful?