[react] feat: Added docs for components/Highlight
This commit is contained in:
parent
05ea157ef9
commit
32d08c923c
4 changed files with 40 additions and 10 deletions
|
@ -0,0 +1,11 @@
|
|||
import React from 'react'
|
||||
import { Highlight } from '@freesewing/react/components/Highlight'
|
||||
|
||||
export const HighlightExample = () => (
|
||||
<Highlight language="js">{[
|
||||
`import { Highlight } from '@freesewing/react/components/Highlight'`,
|
||||
``,
|
||||
`<Highlight language="js">This is an example</Highlight>`,
|
||||
].join("\n")}</Highlight>
|
||||
)
|
||||
|
|
@ -2,6 +2,20 @@
|
|||
title: Highlight
|
||||
---
|
||||
|
||||
:::note
|
||||
This page is yet to be created
|
||||
:::
|
||||
import { DocusaurusDoc } from '@freesewing/react/components/Docusaurus'
|
||||
import { ComponentDocs } from '@site/src/components/component-docs.js'
|
||||
import { jsdocHighlight } from '@site/prebuild/jsdoc/components.highlight.mjs'
|
||||
import { HighlightExample } from './_examples.js'
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
The **Highlight** component family provides the following components:
|
||||
|
||||
- [Highlight](#highlight)
|
||||
|
||||
## Highlight
|
||||
|
||||
<ComponentDocs docs={jsdocHighlight} example={HighlightExample} />
|
||||
|
||||
|
||||
</DocusaurusDoc>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue