
This adds support for not only documenating components, but also constants and functions that may be exported next to components.
32 lines
788 B
Text
32 lines
788 B
Text
---
|
|
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 { CopyToClipboardButtonExample, IconButtonExample } from './_examples.js'
|
|
|
|
<DocusaurusDoc>
|
|
|
|
- [Components](#components)
|
|
|
|
## Components
|
|
|
|
The **Button** component family provides the following components:
|
|
|
|
- [CopyToClipboardButton](#copytoclipboardbutton)
|
|
- [IconButton](#iconbutton)
|
|
|
|
### CopyToClipboardButton
|
|
|
|
<ComponentDocs docs={jsdocCopyToClipboardButton} example={CopyToClipboardButtonExample} />
|
|
|
|
### IconButton
|
|
|
|
<ComponentDocs docs={jsdocIconButton} example={IconButtonExample} />
|
|
|
|
</DocusaurusDoc>
|