An open API service indexing awesome lists of open source software.

https://github.com/stuart-williams/react-chord-svg

React component to generate chord diagram SVGs
https://github.com/stuart-williams/react-chord-svg

chords diagram guitar react svg

Last synced: 7 months ago
JSON representation

React component to generate chord diagram SVGs

Awesome Lists containing this project

README

          

# React Chord SVG

React component to generate chord diagram SVGs

![Minified Size](https://img.shields.io/bundlephobia/min/react-chord-svg)

![Chord](https://raw.githubusercontent.com/stuart-williams/react-chord-svg/main/assets/chord.png)

## Install

```bash
yarn add react-chord-svg
```

```bash
npm install react-chord-svg --save
```

## Usage

```jsx
import ChordSVG from "react-chord-svg";

;
```

## Options

```typescript
interface Props extends SVGProps {
notes: Note[];
title?: string;
startAtFret?: number;
numberOfFrets?: number;
numberOfStrings?: number;
}

interface Note {
bar?: number;
fret?: number;
text?: string;
string: number;
color?: string;
muted?: boolean;
opacity?: number;
textColor?: string;
}
```