diff --git a/docs/lib/Components/PlaceholderPage.js b/docs/lib/Components/PlaceholderPage.js new file mode 100644 index 000000000..31a602641 --- /dev/null +++ b/docs/lib/Components/PlaceholderPage.js @@ -0,0 +1,97 @@ +import React from 'react'; +import { PrismCode } from 'react-prism'; +import PageTitle from '../UI/PageTitle'; +import SectionTitle from '../UI/SectionTitle'; + +import PlaceholderExample from '../examples/Placeholder' +const PlaceholderExampleSource = require('!!raw-loader!../examples/Placeholder') + +import PlaceholderWidthExample from '../examples/PlaceholderWidth'; +const PlaceholderWidthExampleSource = require('!!raw-loader!../examples/PlaceholderWidth'); + +import PlaceholderColorExample from '../examples/PlaceholderColor'; +const PlaceholderColorExampleSource = require('!!raw-loader!../examples/PlaceholderColor'); + +import PlaceholderSizingExample from '../examples/PlaceholderSizing'; +const PlaceholderSizingExampleSource = require('!!raw-loader!../examples/PlaceholderSizing'); + +import PlaceholderAnimationExample from '../examples/PlaceholderAnimation'; +const PlaceholderAnimationExampleSource = require('!!raw-loader!../examples/PlaceholderAnimation'); + +export default class Placeholder extends React.Component { + render() { + return ( +
+++ {PlaceholderExampleSource} + +
+++ {` +Placeholder.propTypes = { + color: PropTypes.string, + tag: tagPropType, + animation: PropTypes.oneOf(['glow', 'wave']), + innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]), + className: PropTypes.string, + size: PropTypes.oneOf(['lg', 'sm', 'xs']), + widths: PropTypes.array, +}; + +PlaceholderButton.propTypes = { + size: PropTypes.string, + color: PropTypes.string, + outline: PropTypes.bool, + className: PropTypes.string, + tag: tagPropType +} + `} + +
+++ {PlaceholderWidthExampleSource} + +
+++ {PlaceholderAnimationExampleSource} + +
+++ {PlaceholderColorExampleSource} + +
+++ {PlaceholderSizingExampleSource} + +