|
| 1 | +/* eslint react/no-multi-comp: 0, react/prop-types: 0 */ |
| 2 | +import React from 'react'; |
| 3 | +import { PrismCode } from 'react-prism'; |
| 4 | +import Helmet from 'react-helmet'; |
| 5 | + |
| 6 | +import PaginationExample from '../examples/Pagination'; |
| 7 | +const PaginationExampleSource = require('!!raw!../examples/Pagination.jsx'); |
| 8 | + |
| 9 | +import PaginationStateExample from '../examples/PaginationState'; |
| 10 | +const PaginationStateExampleSource = require('!!raw!../examples/PaginationState.jsx'); |
| 11 | + |
| 12 | +import PaginationSizingLargeExample from '../examples/PaginationSizingLarge'; |
| 13 | +const PaginationSizingLargeExampleSource = require('!!raw!../examples/PaginationSizingLarge.jsx'); |
| 14 | + |
| 15 | +import PaginationSizingSmallExample from '../examples/PaginationSizingSmall'; |
| 16 | +const PaginationSizingSmallExampleSource = require('!!raw!../examples/PaginationSizingSmall.jsx'); |
| 17 | + |
| 18 | +export default class PaginationPage extends React.Component { |
| 19 | + render() { |
| 20 | + return ( |
| 21 | + <div> |
| 22 | + <Helmet title="Pagination" /> |
| 23 | + <h3>Pagination</h3> |
| 24 | + <div className="docs-example"> |
| 25 | + <PaginationExample /> |
| 26 | + </div> |
| 27 | + <pre> |
| 28 | + <PrismCode className="language-jsx"> |
| 29 | + {PaginationExampleSource} |
| 30 | + </PrismCode> |
| 31 | + </pre> |
| 32 | + <h4>Properties</h4> |
| 33 | + <pre> |
| 34 | + <PrismCode className="language-jsx"> |
| 35 | +{`Pagination.propTypes = { |
| 36 | + children: PropTypes.node, |
| 37 | + className: PropTypes.string, |
| 38 | + size: PropTypes.string, |
| 39 | + tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), |
| 40 | +}`} |
| 41 | + </PrismCode> |
| 42 | + </pre> |
| 43 | + <h3>Disabled and active states</h3> |
| 44 | + <div className="docs-example"> |
| 45 | + <PaginationStateExample /> |
| 46 | + </div> |
| 47 | + <pre> |
| 48 | + <PrismCode className="language-jsx"> |
| 49 | + {PaginationStateExampleSource} |
| 50 | + </PrismCode> |
| 51 | + </pre> |
| 52 | + <h3>Sizing</h3> |
| 53 | + <div className="docs-example"> |
| 54 | + <PaginationSizingLargeExample /> |
| 55 | + </div> |
| 56 | + <pre> |
| 57 | + <PrismCode className="language-jsx"> |
| 58 | + {PaginationSizingLargeExampleSource} |
| 59 | + </PrismCode> |
| 60 | + </pre> |
| 61 | + <div className="docs-example"> |
| 62 | + <PaginationSizingSmallExample /> |
| 63 | + </div> |
| 64 | + <pre> |
| 65 | + <PrismCode className="language-jsx"> |
| 66 | + {PaginationSizingSmallExampleSource} |
| 67 | + </PrismCode> |
| 68 | + </pre> |
| 69 | + </div> |
| 70 | + ); |
| 71 | + } |
| 72 | +} |
0 commit comments