Skip to content

Commit 8bde282

Browse files
committed
Add story
1 parent 952357f commit 8bde282

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

dotcom-rendering/src/components/Masthead/HighlightsCard.stories.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,37 @@ const CardWrapper = ({ children }: { children: React.ReactNode }) => {
6262

6363
export const Default = {};
6464

65+
export const WithQuotes: Story = {
66+
name: 'With Quotes',
67+
args: {
68+
showQuotedHeadline: true,
69+
},
70+
render: (args) => {
71+
const Card = ({ pillar }: { pillar: Pillar }) => (
72+
<CardWrapper>
73+
<HighlightsCard
74+
{...args}
75+
format={{
76+
display: ArticleDisplay.Standard,
77+
design: ArticleDesign.Standard,
78+
theme: pillar,
79+
}}
80+
/>
81+
</CardWrapper>
82+
);
83+
84+
return (
85+
<>
86+
<Card pillar={Pillar.News} />
87+
<Card pillar={Pillar.Opinion} />
88+
<Card pillar={Pillar.Sport} />
89+
<Card pillar={Pillar.Culture} />
90+
<Card pillar={Pillar.Lifestyle} />
91+
</>
92+
);
93+
},
94+
};
95+
6596
export const WithAvatar: Story = {
6697
args: {
6798
avatarUrl:

0 commit comments

Comments
 (0)