|
| 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 | +import ListGroupExample from '../examples/ListGroup'; |
| 6 | +import ListGroupTagExample from '../examples/ListGroupTag'; |
| 7 | +import ListGroupDisabledItemsExample from '../examples/ListGroupDisabledItems'; |
| 8 | +import ListGroupAnchorsAndButtonsExample from '../examples/ListGroupAnchorsAndButtons'; |
| 9 | +import ListGroupContextualClassesExample from '../examples/ListGroupContextualClasses'; |
| 10 | +import ListGroupCustomContentExample from '../examples/ListGroupCustomContent'; |
| 11 | + |
| 12 | +const ListGroupTagExampleSource = require('!!raw!../examples/ListGroupTag'); |
| 13 | +const ListGroupExampleSource = require('!!raw!../examples/ListGroup'); |
| 14 | +const ListGroupDisabledItemsExampleSource = require('!!raw!../examples/ListGroupDisabledItems'); |
| 15 | +const ListGroupAnchorsAndButtonsExampleSource = require('!!raw!../examples/ListGroupAnchorsAndButtons'); |
| 16 | +const ListGroupContextualClassesExampleSource = require('!!raw!../examples/ListGroupContextualClasses'); |
| 17 | +const ListGroupCustomContentExampleSource = require('!!raw!../examples/ListGroupCustomContent'); |
| 18 | + |
| 19 | +export default class ListGroupPage extends React.Component { |
| 20 | + render() { |
| 21 | + return ( |
| 22 | + <div> |
| 23 | + <Helmet title="ListGroup Components" /> |
| 24 | + <h3>ListGroup</h3> |
| 25 | + <div className="docs-example"> |
| 26 | + <ListGroupExample /> |
| 27 | + </div> |
| 28 | + <pre> |
| 29 | + <PrismCode className="language-jsx"> |
| 30 | + {ListGroupExampleSource} |
| 31 | + </PrismCode> |
| 32 | + </pre> |
| 33 | + |
| 34 | + <legend>Tags</legend> |
| 35 | + <div className="docs-example"> |
| 36 | + <ListGroupTagExample /> |
| 37 | + </div> |
| 38 | + <pre> |
| 39 | + <PrismCode className="language-jsx"> |
| 40 | + {ListGroupTagExampleSource} |
| 41 | + </PrismCode> |
| 42 | + </pre> |
| 43 | + |
| 44 | + <legend>Disabled items</legend> |
| 45 | + <div className="docs-example"> |
| 46 | + <ListGroupDisabledItemsExample /> |
| 47 | + </div> |
| 48 | + <pre> |
| 49 | + <PrismCode className="language-jsx"> |
| 50 | + {ListGroupDisabledItemsExampleSource} |
| 51 | + </PrismCode> |
| 52 | + </pre> |
| 53 | + |
| 54 | + <legend>Anchors and buttons</legend> |
| 55 | + <div className="docs-example"> |
| 56 | + <p>Note: you need add action props to make these buttons fit the list.</p> |
| 57 | + <ListGroupAnchorsAndButtonsExample /> |
| 58 | + </div> |
| 59 | + <pre> |
| 60 | + <PrismCode className="language-jsx"> |
| 61 | + {ListGroupAnchorsAndButtonsExampleSource} |
| 62 | + </PrismCode> |
| 63 | + </pre> |
| 64 | + |
| 65 | + <legend>Contextual classes</legend> |
| 66 | + <div className="docs-example"> |
| 67 | + <ListGroupContextualClassesExample /> |
| 68 | + </div> |
| 69 | + <pre> |
| 70 | + <PrismCode className="language-jsx"> |
| 71 | + {ListGroupContextualClassesExampleSource} |
| 72 | + </PrismCode> |
| 73 | + </pre> |
| 74 | + |
| 75 | + <legend>Custom content</legend> |
| 76 | + <div className="docs-example"> |
| 77 | + <ListGroupCustomContentExample /> |
| 78 | + </div> |
| 79 | + <pre> |
| 80 | + <PrismCode className="language-jsx"> |
| 81 | + {ListGroupCustomContentExampleSource} |
| 82 | + </PrismCode> |
| 83 | + </pre> |
| 84 | + </div> |
| 85 | + ); |
| 86 | + } |
| 87 | +} |
0 commit comments