You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, to customize the CollectionCard, do I need to patch all of the following components: Collection, CollectionView, CollectionViewGallery, and CollectionCard?
If that's the case, I tried the following setup:
CustomCollection.tsx
import { Collection } from 'react-notion-x/build/third-party/collection'
import CustomCollectionView from './CustomCollectionView'
function CustomCollection(props) {
console.log('CustomCollection', props)
return (
<Collection
{...props}
components={{
CollectionView: CustomCollectionView
}}
/>
)
}
export default CustomCollection
However, my CustomCollectionView does not seem to be reflected or used.
Could you please let me know how I should properly pass down the custom components so that my CustomCollectionCard is actually used in the gallery view?
The text was updated successfully, but these errors were encountered:
kryushiki
changed the title
CollectionCardをoverrideまたはカスタムする方法が知りたい
How to pass custom CollectionCard to CollectionViewGallery
Apr 9, 2025
kryushiki
changed the title
How to pass custom CollectionCard to CollectionViewGallery
How custom CollectionCard
Apr 10, 2025
kryushiki
changed the title
How custom CollectionCard
How to custom CollectionCard
Apr 10, 2025
I'm trying to customize the card layout shown in the CollectionViewGallery, but I'm having trouble getting my custom component to apply.
notionPage.tsx
CollectionCard is nested inside Collection → CollectionView → CollectionViewGallery → CollectionCard.
So, to customize the CollectionCard, do I need to patch all of the following components: Collection, CollectionView, CollectionViewGallery, and CollectionCard?
If that's the case, I tried the following setup:
CustomCollection.tsx
However, my CustomCollectionView does not seem to be reflected or used.
Could you please let me know how I should properly pass down the custom components so that my CustomCollectionCard is actually used in the gallery view?
The text was updated successfully, but these errors were encountered: