@sankei-arc-shared-components/feature_story-card
v0.1.6
Published
Sankei Story Card Component
Downloads
77
Readme
Feature - Story Card
How do I use it in my Fusion Project?
import StoryCard from '@sankei-arc-shared-components/feature_story-card';
... some code
const props = {
ans,
className: 'story-card card',
components: [{
Component: LeadArt,
props: {
className: 'lead-art',
hideCaption: true,
imgClassName: 'width-full',
resizerPreset,
source: 'promo_items.basic',
}
}...]
};
<StoryCard {...props}>
{([
leadArt,
]) => (
<>
{leadArt}
</>
)}
</StoryCard>
more code ...
Take a look in the src/index.mdx
file to see suggested implementations.