colby-react-person
v1.0.6
Published
A React component for displaying information about a person.
Downloads
8
Readme
colby-react-person
An person component for React.
Install
npm install --save colby-react-person
Include in your project
JS
import React from 'react';
import { render } from 'react-dom';
import Person from 'colby-react-person';
...
render(<Person {...props} />, container);
Props
Types
email: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
link: PropTypes.string,
nickname: PropTypes.string,
phone: PropTypes.string,
photo: PropTypes.string,
Defaults
link: '',
nickname: '',
phone: '',
photo: null