import React from 'react'; import Arguments from './ArgumentsRenderer'; import Argument from 'react-styleguidist/lib/client/rsg-components/Argument'; import JsDoc from './JsDoc'; import Markdown from 'react-styleguidist/lib/client/rsg-components/Markdown'; import Name from 'react-styleguidist/lib/client/rsg-components/Name'; import Para from 'react-styleguidist/lib/client/rsg-components/Para'; import renderTypeColumn from 'react-styleguidist/lib/client/rsg-components/Props/renderType'; import renderExtra from 'react-styleguidist/lib/client/rsg-components/Props/renderExtra'; import renderDefault from 'react-styleguidist/lib/client/rsg-components/Props/renderDefault'; import { PropDescriptor } from 'react-styleguidist/lib/client/rsg-components/Props/util'; function renderDescription(prop: PropDescriptor) { const { description, tags = {} } = prop; const extra = renderExtra(prop); const args = [...(tags.arg || []), ...(tags.argument || []), ...(tags.param || [])]; const returnDocumentation = (tags.return && tags.return[0]) || (tags.returns && tags.returns[0]); return (
| Type | Required |
|---|---|
| {customType ? customType[0].description : isComponentProp ? 'Component, element' : r.type.name} | No |