Skip to content

Commit

Permalink
feat: add custom component to storybook constants
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceoq committed Nov 30, 2023
1 parent 13bb9eb commit 2858e4c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import APIGuidesIcon from 'components/icons/api-guides-icon'
import APIReferenceIcon from 'components/icons/api-reference-icon'
import { Component } from 'lib/markdown-renderer/MarkdownRenderer.types'
import { serialize } from 'next-mdx-remote/serialize'

export const sections = [
Expand Down Expand Up @@ -124,9 +125,16 @@ These are some of the features built-in our clients infrastructure:
![Clients on IO Services](https://imgur.com/i45O8MN.png)
<TestComponent text="Test component prop" />
Learn how to create Clients of your own by accessing [Managing Clients](https://developers.vtex.com/vtex-developer-docs/docs/vtex-io-documentation-how-to-create-and-use-clients) documentation.
`

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const TestComponent = ({ node, ...props }: Component) => {
return <div>{props.text}</div>
}

export const serialized = await serialize(markdown_example, {
mdxOptions: {
development: true,
Expand Down

0 comments on commit 2858e4c

Please sign in to comment.