[react] feat: Added docs for components/CuratedSet
This commit is contained in:
parent
e58177dedb
commit
297e4820b0
2 changed files with 30 additions and 3 deletions
|
@ -0,0 +1,10 @@
|
|||
import React from 'react'
|
||||
import { CuratedSet, CuratedSetLineup } from '@freesewing/react/components/CuratedSet'
|
||||
|
||||
const CuratedSetExample = () => <CuratedSet id={1} />
|
||||
const CuratedSetLineupExample = () => <CuratedSetLineup href={() => '#'} />
|
||||
|
||||
export {
|
||||
CuratedSetExample,
|
||||
CuratedSetLineupExample,
|
||||
}
|
|
@ -2,6 +2,23 @@
|
|||
title: CuratedSet
|
||||
---
|
||||
|
||||
:::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 { jsdocCuratedSet, jsdocCuratedSetLineup } from '@site/prebuild/jsdoc/components.curatedset.mjs'
|
||||
import { CuratedSetLineupExample, CuratedSetExample } from './_examples.js'
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
The **CuratedSet** component family provides the following components:
|
||||
|
||||
- [CuratedSet](#curatedset)
|
||||
- [CuratedSetLineup](#curatedsetlineup)
|
||||
|
||||
## CuratedSet
|
||||
<ComponentDocs docs={jsdocCuratedSet} example={CuratedSetExample} />
|
||||
|
||||
## CuratedSetLineup
|
||||
<ComponentDocs docs={jsdocCuratedSetLineup} example={CuratedSetLineupExample} />
|
||||
|
||||
|
||||
</DocusaurusDoc>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue