feat(dev): Added react docs for Pattern + refactor
This adds support for not only documenating components, but also constants and functions that may be exported next to components.
This commit is contained in:
parent
d0baf7cece
commit
22a89f12d3
50 changed files with 1816 additions and 669 deletions
|
@ -4,21 +4,28 @@ title: Button
|
|||
|
||||
import { DocusaurusDoc } from '@freesewing/react/components/Docusaurus'
|
||||
import { ComponentDocs } from '@site/src/components/component-docs.js'
|
||||
import { jsdocCopyToClipboardButton, jsdocIconButton } from '@site/prebuild/jsdoc/components.button.mjs'
|
||||
import {
|
||||
jsdocCopyToClipboardButton,
|
||||
jsdocIconButton,
|
||||
} from '@site/prebuild/jsdoc/components.button.mjs'
|
||||
import { CopyToClipboardButtonExample, IconButtonExample } from './_examples.js'
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
- [Components](#components)
|
||||
|
||||
## Components
|
||||
|
||||
The **Button** component family provides the following components:
|
||||
|
||||
- [CopyToClipboardButton](#copytoclipboardbutton)
|
||||
- [IconButton](#iconbutton)
|
||||
|
||||
## CopyToClipboardButton
|
||||
### CopyToClipboardButton
|
||||
|
||||
<ComponentDocs docs={jsdocCopyToClipboardButton} example={CopyToClipboardButtonExample} />
|
||||
|
||||
## IconButton
|
||||
### IconButton
|
||||
|
||||
<ComponentDocs docs={jsdocIconButton} example={IconButtonExample} />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue