Skip to content

Like button

Emee Miano edited this page Mar 21, 2022 · 2 revisions

You can customize the look and behavior of your Like button in posts.

You need to pass all your custom components into AmityUiKitProvider using customComponents prop.

import { AmityUiKitProvider } from '@amityco/ui-kit';

function CustomPostLikeButton({ onClick, isActive, isDisabled }) {
  return (...);
}

function MyApp() {
  return (
    <AmityUiKitProvider
      customComponents={{
        PostLikeButton: CustomPostLikeButton,
        anotherComponentId: AnotherCustomComponent,
      }}
    >
    </AmityUiKitProvider>
  );
}
Clone this wiki locally