react-conventions
Version:
An open source set of React components that implement Ambassador's Design and UX patterns.
33 lines (29 loc) • 878 B
JavaScript
import React from 'react'
import PropsList from 'private/modules/PropsList';
import docs from '!!docgen!react-conventions/lib/Avatar/Avatar';
import CodeExample from 'private/modules/CodeExample'
import styles from 'private/css/content'
import ExampleAvatar from './ExampleAvatar'
import exampleAvatarCode from '!raw!./ExampleAvatar'
const description = {
avatar: 'This is the `avatar component`.'
};
const AvatarPage = () => (
<div>
<div className={styles.content}>
<div className={styles.block}>
<CodeExample
title='Example Avatar'
description={description.avatar}
markup={exampleAvatarCode}>
<ExampleAvatar />
</CodeExample>
</div>
<div className={styles.block}>
<h3>Props</h3>
<PropsList list={docs[0].props} />
</div>
</div>
</div>
)
export default AvatarPage