Loading...
You need to pass all your custom components into AmityUiKitProvider using customComponents prop.
AmityUiKitProvider
customComponents
import { AmityUiKitProvider } from '@amityco/ui-kit'; function CustomPostLikeButton({ onClick, isActive, isDisabled }) { return (...); } function MyApp() { return ( <AmityUiKitProvider customComponents={{ PostLikeButton: CustomPostLikeButton, anotherComponentId: AnotherCustomComponent, }} > </AmityUiKitProvider> ); }
AmityUIKit will allow some parts of the component to be replaceable with your own component
UIKit provides a way to use your own UI to replace the default UIKit components.
Using your own like button for posts