[react] feat: Added docs for components/Spinner
This commit is contained in:
parent
bc8b495d1c
commit
4ba8b50b2c
4 changed files with 38 additions and 5 deletions
|
@ -0,0 +1,9 @@
|
|||
import React from 'react'
|
||||
import { Spinner } from '@freesewing/react/components/Spinner'
|
||||
|
||||
export const SpinnerExample = () => (
|
||||
<>
|
||||
<Spinner />
|
||||
<Spinner className="tw:w-24 tw:h-24 tw:text-warning" />
|
||||
</>
|
||||
)
|
|
@ -2,6 +2,24 @@
|
|||
title: Spinner
|
||||
---
|
||||
|
||||
:::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 * as jsdoc from '@site/prebuild/jsdoc/components.spinner.mjs'
|
||||
import { SpinnerExample } from './_examples.js'
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
- [Components](#components)
|
||||
|
||||
## Components
|
||||
|
||||
The **Spinner** component family provides the following components:
|
||||
|
||||
- [Spinner](#spinner)
|
||||
|
||||
### Spinner
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocSpinner} example={SpinnerExample} />
|
||||
|
||||
</DocusaurusDoc>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue