-
Notifications
You must be signed in to change notification settings - Fork 47
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>
);
}