[react] feat: Added docs for components/Profile
This commit is contained in:
parent
320bcf8534
commit
d6cbe79dd5
4 changed files with 59 additions and 17 deletions
|
@ -0,0 +1,7 @@
|
|||
import React from 'react'
|
||||
import { Avatar, OwnProfile, UserProfile } from '@freesewing/react/components/Profile'
|
||||
|
||||
export const AvatarExample = () => <Avatar ihash="7bf3d6a154885eb2c4f56e2bf54b3666d8fb634b72c07c971511816ed0298c79" />
|
||||
|
||||
export const OwnProfileExample = OwnProfile
|
||||
export const UserProfileExample = () => <UserProfile uid={1} />
|
|
@ -2,6 +2,33 @@
|
|||
title: Profile
|
||||
---
|
||||
|
||||
:::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.profile.mjs'
|
||||
import { AvatarExample, OwnProfileExample, UserProfileExample } from './_examples.js'
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
- [Components](#components)
|
||||
|
||||
## Components
|
||||
|
||||
The **Json** component family provides the following components:
|
||||
|
||||
- [Avatar](#avatar)
|
||||
- [OwnProfile](#ownprofile)
|
||||
- [UserProfile](#userprofile)
|
||||
|
||||
### Avatar
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocAvatar} example={AvatarExample} />
|
||||
|
||||
### OwnProfile
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocOwnProfile} example={OwnProfileExample} />
|
||||
|
||||
### UserProfile
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocUserProfile} example={UserProfileExample} />
|
||||
|
||||
</DocusaurusDoc>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue