| /* |
| * Copyright (c) 2018 StreamNative. All Rights Reserved. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| import React, { Component } from 'react'; |
| import { Card, CardBody, CardHeader, Pagination, PaginationItem, PaginationLink } from 'reactstrap'; |
| |
| class Paginations extends Component { |
| |
| render() { |
| return ( |
| <div className="animated fadeIn"> |
| <Card> |
| <CardHeader> |
| <i className="fa fa-align-justify"></i><strong>Pagination</strong> |
| <div className="card-header-actions"> |
| <a href="https://reactstrap.github.io/components/pagination/" rel="noreferrer noopener" target="_blank" className="card-header-action"> |
| <small className="text-muted">docs</small> |
| </a> |
| </div> |
| </CardHeader> |
| <CardBody> |
| <Pagination> |
| <PaginationItem> |
| <PaginationLink previous tag="button" /> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 1 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 2 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 3 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 4 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 5 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink next tag="button" /> |
| </PaginationItem> |
| </Pagination> |
| </CardBody> |
| </Card> |
| <Card> |
| <CardHeader> |
| <i className="fa fa-align-justify"></i><strong>Pagination</strong> |
| <small> disabled and active states</small> |
| </CardHeader> |
| <CardBody> |
| <Pagination> |
| <PaginationItem disabled> |
| <PaginationLink previous tag="button" /> |
| </PaginationItem> |
| <PaginationItem active> |
| <PaginationLink tag="button"> |
| 1 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 2 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 3 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 4 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 5 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink next tag="button" /> |
| </PaginationItem> |
| </Pagination> |
| </CardBody> |
| </Card> |
| <Card> |
| <CardHeader> |
| <i className="fa fa-align-justify"></i><strong>Pagination</strong> |
| <small> sizing</small> |
| </CardHeader> |
| <CardBody> |
| <Pagination size="lg"> |
| <PaginationItem> |
| <PaginationLink previous tag="button" /> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 1 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 2 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 3 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem className="d-none d-sm-block"> |
| <PaginationLink next tag="button" /> |
| </PaginationItem> |
| </Pagination> |
| <Pagination> |
| <PaginationItem> |
| <PaginationLink previous tag="button" /> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 1 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 2 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 3 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink next tag="button" /> |
| </PaginationItem> |
| </Pagination> |
| <Pagination size="sm"> |
| <PaginationItem> |
| <PaginationLink previous tag="button" /> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 1 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 2 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink tag="button"> |
| 3 |
| </PaginationLink> |
| </PaginationItem> |
| <PaginationItem> |
| <PaginationLink next tag="button" /> |
| </PaginationItem> |
| </Pagination> |
| </CardBody> |
| </Card> |
| </div> |
| ); |
| } |
| } |
| |
| export default Paginations; |