[react] feat: Added docs for components/CopyToClipboardButton
This commit is contained in:
parent
fc04e415c9
commit
749b6b9da7
4 changed files with 43 additions and 7 deletions
|
@ -0,0 +1,9 @@
|
|||
import React from 'react'
|
||||
import { CopyToClipboardButton } from '@freesewing/react/components/CopyToClipboardButton'
|
||||
|
||||
export const CopyToClipboardButtonExample = () => (
|
||||
<>
|
||||
<CopyToClipboardButton content="I am the regular example" label="Regular Example">Regular Example</CopyToClipboardButton>
|
||||
<CopyToClipboardButton content="I am the sup example" label="Sup Example" sup>Sup Example</CopyToClipboardButton>
|
||||
</>
|
||||
)
|
|
@ -2,6 +2,20 @@
|
|||
title: CopyToClipboardButton
|
||||
---
|
||||
|
||||
:::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 { jsdocCopyToClipboardButton } from '@site/prebuild/jsdoc/components.copytoclipboardbutton.mjs'
|
||||
import { CopyToClipboardButtonExample } from './_examples.js'
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
The **CopyToClipboardButton** component family provides the following components:
|
||||
|
||||
- [CopyToClipboardButton](#copytoclipboardbutton)
|
||||
|
||||
## CopyToClipboardButton
|
||||
|
||||
<ComponentDocs docs={jsdocCopyToClipboardButton} example={CopyToClipboardButtonExample} />
|
||||
|
||||
</DocusaurusDoc>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue