# cf-component-arrow-swivel

> >

Latest version **3.0.0** (published 2018-05-08) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cf-component-arrow-swivel
pnpm add cf-component-arrow-swivel
yarn add cf-component-arrow-swivel
bun add cf-component-arrow-swivel
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2018-05-08 |
| First published | 2017-10-13 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 17.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sachin Fernandes |
| Maintainers | adamschwartz, cf-ci, cf-ci-write, ereeves, hamidagh, handrews, hturan, inikulin, jculvey, johndotawesome, jparyani-cloudflare, manatarms, marksteyn, miksu, mpint, nkcmr, rreverser, ryan0x44, sejoker, teffenellis, terinjokes, toekneestuck, vasturiano |

## Links

- npm: https://www.npmjs.com/package/cf-component-arrow-swivel
- npm.io page: https://npm.io/package/cf-component-arrow-swivel

## Dependencies (3)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0
- [cf-component-icon](https://npm.io/package/cf-component-icon.md) ^5.0.0
- [cf-style-container](https://npm.io/package/cf-style-container.md) ^9.0.0

## Recent versions

- 3.0.0 (latest) — 2018-05-08
- 2.1.33 — 2018-05-04
- 2.1.32 — 2018-05-02
- 2.1.31 — 2018-05-01
- 2.1.30 — 2018-04-27
- 2.1.29 — 2018-04-24
- 2.1.28 — 2018-04-24
- 2.1.27 — 2018-04-18
- 2.1.26 — 2018-04-12
- 2.1.25 — 2018-04-11
- 2.1.24 — 2018-03-28
- 2.1.23 — 2018-03-28
- 2.1.22 — 2018-03-27
- 2.1.21 — 2018-03-23
- 2.1.20 — 2018-03-16
- … 23 more at https://npm.io/package/cf-component-arrow-swivel/versions

## README

# cf-component-arrow-swivel

> 

## Installation
Installation with yarn is recommended

```sh

$ yarn add cf-component-arrow-swivel

```

## Usage

```jsx
import React from 'react';
import { ArrowSwivel } from 'cf-component-arrow-swivel';

class ArrowSwivelComponent extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      isActiveFirst: false,
      isActiveSecond: false
    };
  }
  render() {
    return (
      <div>
        <p>Default arrow swivel</p>
        <ArrowSwivel
          isActive={this.state.isActiveFirst}
          onClick={() =>
            this.setState({ isActiveFirst: !this.state.isActiveFirst })
          }
        />
        <p>
          You can also modify the startAngle, endAngle, duration, color and size
        </p>
        <ArrowSwivel
          startAngle={-90}
          endAngle={90}
          duration={500}
          isActive={this.state.isActiveSecond}
          color="default"
          size="1.5x"
          onClick={() =>
            this.setState({ isActiveSecond: !this.state.isActiveSecond })
          }
        />
      </div>
    );
  }
}

export default ArrowSwivelComponent;

```

---
_Source: https://npm.io/package/cf-component-arrow-swivel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
