Skip to content

Commit

Permalink
docs(note): add prop descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
danethurber committed Jun 13, 2019
1 parent f17833a commit bc46255
Showing 1 changed file with 37 additions and 10 deletions.
47 changes: 37 additions & 10 deletions packages/site/pages/components/note.js
Expand Up @@ -51,7 +51,8 @@ export default withServerProps(_ => (
<code>Note.AvatarLink</code>
</span>,
null,
null
null,
`a user's avatar`
]),
PropTypes.row([
'heading',
Expand All @@ -61,9 +62,16 @@ export default withServerProps(_ => (
<code>node</code>
</span>,
null,
null
null,
'the note heading'
]),
PropTypes.row([
'message',
<code>node</code>,
true,
null,
'the main message body'
]),
PropTypes.row(['message', <code>node</code>, true, null]),
PropTypes.row([
'metadata',
<span>
Expand All @@ -72,24 +80,43 @@ export default withServerProps(_ => (
<code>node[]</code>
</span>,
null,
null
null,
'a row of metadata'
])
],
'Note.Action': [
PropTypes.row(['icon', <code>Icon</code>, true, null, '']),
PropTypes.row(['title', <code>string</code>, true, null, ''])
PropTypes.row([
'icon',
<code>Icon</code>,
true,
null,
'icon representing action'
]),
PropTypes.row([
'title',
<code>string</code>,
true,
null,
'text representing action'
])
],
'Note.AvatarLink': [
PropTypes.row([
'actionBar',
<code>Note.Action[]</code>,
'children',
<code>a > Avatar</code>,
true,
null,
''
'hyperlinked avatar'
])
],
'Note.List': [
PropTypes.row(['children', <code>Note[]</code>, true, null, ''])
PropTypes.row([
'children',
<code>Note[]</code>,
true,
null,
'Notes to be placed in list'
])
]
}}
/>
Expand Down

0 comments on commit bc46255

Please sign in to comment.