Using Your Own Like Button for Posts

Usage
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: (props) => <CustomPostLikeButton {...props} />,
anotherComponentId: (props) => <AnotherCustomComponent {...props} />,
}}
>
</AmityUiKitProvider>
);
}
Last updated
Was this helpful?