# react-bootstrap-timeline

> React-Bootstrap-Timeline

Latest version **0.0.9** (published 2021-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-bootstrap-timeline
pnpm add react-bootstrap-timeline
yarn add react-bootstrap-timeline
bun add react-bootstrap-timeline
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2021-07-20 |
| First published | 2021-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 45.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Arash Zhianfard |
| Maintainers | arash.zhianfard |
| Keywords | react, hooks, bootstrap, timeline, component |

## Links

- npm: https://www.npmjs.com/package/react-bootstrap-timeline
- Repository: https://github.com/Arash-Zhianfard/React-Bootstrap-Timeline
- Homepage: https://github.com/Arash-Zhianfard/React-Bootstrap-Timeline#readme
- Issues: https://github.com/Arash-Zhianfard/React-Bootstrap-Timeline/issues
- npm.io page: https://npm.io/package/react-bootstrap-timeline

## Dependencies (1)

- [bootstrap](https://npm.io/package/bootstrap.md) ^4.6.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.9 (latest) — 2021-07-20
- 0.0.8 — 2021-07-20
- 0.0.7 — 2021-07-17
- 0.0.6 — 2021-07-17
- 0.0.5 — 2021-07-17
- 0.0.4 — 2021-07-17
- 0.0.3 — 2021-07-17
- 0.0.2 — 2021-07-16
- 0.0.1 — 2021-07-16

## README

# React-Bootstrap-Timeline

![](https://i.ibb.co/Dpr0szV/timeline1.png)
![](https://i.ibb.co/QNX5hxW/timeline2.png)

# Getting Started

## Installation

`npm install react-bootstrap-timeline`



## Usage
### Import Bootstrap style to the project

```js
import 'bootstrap/dist/css/bootstrap.css';
```
**Bootstrap 4.6.0 has already installed.**
### The component can be used in following ways

 1. Nested childs

    ```ts
       <Timeline>
          <Card
            content={'This is the content of the react-bootstrap-timeline'}
            title={'react-bootstrap-timeline-Card-1'}
            isActive={false}
            datetime={'2021-07-17'}
          />
          <Card
            content={'This is the content of the react-bootstrap-timeline'}
            title={'react-bootstrap-timeline-Card-2'}
            isActive={true}
            datetime={'2021-07-17'}
          />
      </Timeline>
    ```
2. Using array
    ```ts
     let cards: CardProps[] = [
            {
              content:'This is the content of the react-bootstrap-timeline',
              title:'react-bootstrap-timeline-Card-1',
              isActive:true,
              datetime:'2021-07-17'
            },
            {
              content:'This is the content of the react-bootstrap-timeline',
              title:'react-bootstrap-timeline-Card-2',
              isActive:false,
              datetime:'2021-07-17'
            }
          ];
     <Timeline cards={cards}/>
    ```
3. Integration of both 
    ```ts
    let cards: CardProps[] = [
        {
          content:'This is the  content of the   react-bootstrap-timeline',
          title:'react-bootstrap-timeline-Card-1',
          isActive:true,
          datetime:'2021-07-17'
        }    
      ];
      <Timeline>
      <Card
        content={'This is the content of the react-bootstrap-timeline'}
        title={'react-bootstrap-timeline-Card-2'}
        isActive={false}
        datetime={'2021-07-17'}
      />
      </Timeline>
     ```
# Advance Setting       

 ```ts
let timelineSetting: Setting = {
  Alignment: TimelineAlignment.Right,//timeline alignment
  Size: BsSize.Medium,//bootstrap sizes
  PaddingY: BsPaddingY.Five,//padding between cards
};
```
Usage

```ts
<Timeline setting={timelineSetting}>
    <Card
    content={'This is the content of the react-bootstrap-timeline'}
    title={'react-bootstrap-timeline-Card-1'}
    isActive={false}
    datetime={'2021-07-17'}/>
    <Card
    content={'This is the content of the react-bootstrap-timeline'}
    title={'react-bootstrap-timeline-Card-2'}
    isActive={true}
    datetime={'2021-07-17'}/>
</Timeline>
```

---
_Source: https://npm.io/package/react-bootstrap-timeline · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
