-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e8c16d
commit 38096f8
Showing
5 changed files
with
120 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
import { Flex, ThemeProvider } from '@vtex/brand-ui' | ||
import WhatsNextCard from './index' | ||
import LibraryContextProvider from 'utils/context/libraryContext' | ||
import { exampleContextProps } from 'utils/storybook-constants' | ||
|
||
const meta = { | ||
title: 'Example/WhatsNextCard', | ||
component: WhatsNextCard, | ||
parameters: {}, | ||
tags: ['autodocs'], | ||
decorators: [ | ||
(Story) => ( | ||
<ThemeProvider> | ||
<LibraryContextProvider {...exampleContextProps}> | ||
<Flex> | ||
<Story /> | ||
</Flex> | ||
</LibraryContextProvider> | ||
</ThemeProvider> | ||
), | ||
], | ||
} satisfies Meta<typeof WhatsNextCard> | ||
|
||
export default meta | ||
type Story = StoryObj<typeof meta> | ||
|
||
export const WhatsNextCardExample: Story = { | ||
args: { | ||
title: 'New to VTEX IO?', | ||
linkTo: 'https://developers.vtex.com/docs/guides/vtex-io-getting-started', | ||
description: | ||
'Build stores and IO apps from scratch with our learning-oriented tutorials.', | ||
linkTitle: 'Get started', | ||
}, | ||
} | ||
|
||
export const WhatsNextCardImageExample: Story = { | ||
args: { | ||
title: 'Midnight', | ||
linkTo: 'https://developers.vtex.com/docs/guides/faststore/themes-midnight', | ||
image: | ||
'https://vtexhelp.vtexassets.com/assets/docs/src/midnight___197d3bec531d5cbd4959f2cddabacc46.png', | ||
}, | ||
} | ||
|
||
export const WhatsNextCardSimpleExample: Story = { | ||
args: { | ||
title: 'New to VTEX IO?', | ||
linkTo: 'https://developers.vtex.com/docs/guides/vtex-io-getting-started', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters