[react] feat: Added docs for components/Collection
This commit is contained in:
parent
ef6f59de80
commit
34ae1dc8dc
5 changed files with 55 additions and 29 deletions
|
@ -0,0 +1,8 @@
|
|||
import { Collection as CollectionExample, DesignInfo } from '@freesewing/react/components/Collection'
|
||||
|
||||
const DesignInfoExample = () => <DesignInfo design="aaron" />
|
||||
|
||||
export {
|
||||
CollectionExample,
|
||||
DesignInfoExample,
|
||||
}
|
|
@ -2,6 +2,23 @@
|
|||
title: Collection
|
||||
---
|
||||
|
||||
:::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 { jsdocCollection, jsdocDesignInfo } from '@site/prebuild/jsdoc/components.collection.mjs'
|
||||
import { CollectionExample, DesignInfoExample } from './_examples.js'
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
The **Collection** component family provides the following components:
|
||||
|
||||
- [Collection](#collection)
|
||||
- [DesignInfo](#designinfo)
|
||||
|
||||
## Collection
|
||||
|
||||
<ComponentDocs docs={jsdocCollection} example={CollectionExample} />
|
||||
|
||||
## DesignInfo
|
||||
|
||||
</DocusaurusDoc>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue