UNPKG
@kalamazoo/docs
Version:
latest (1.0.0)
1.0.0
Utilities for building documentation
github.com/stevenselcuk/kalamazoo
stevenselcuk/kalamazoo
@kalamazoo/docs
/
dist
/
cjs
/
Props
/
components
/
Description.js.flow
13 lines
(10 loc)
•
285 B
Flow
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
// @flow
import
React
, { type
Node
}
from
'react'
;
export
default
function
ReadmeDescription
(
{ children }: { children: Node }
) {
const
style = {
marginTop
:
12
};
return
typeof
children ===
'string'
? (
<
p
>
{children}
</
p
>
) : (
<
div
style
=
{style}
>
{children}
</
div
>
); }