# react-youtube-embed

> A responsive YouTube embed component for React.

Latest version **1.0.3** (published 2019-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-youtube-embed
pnpm add react-youtube-embed
yarn add react-youtube-embed
bun add react-youtube-embed
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-07-08 |
| First published | 2018-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/react-youtube-embed) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 243 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kennedy Rose |
| Maintainers | ken85rose, tbaustin |
| Keywords | react, youtube, embed, responsive |

## Links

- npm: https://www.npmjs.com/package/react-youtube-embed
- Repository: https://github.com/escaladesports/react-youtube-embed
- Homepage: https://github.com/escaladesports/react-youtube-embed#readme
- Issues: https://github.com/escaladesports/react-youtube-embed/issues
- npm.io page: https://npm.io/package/react-youtube-embed

## Dependencies (1)

- [styled-jsx](https://npm.io/package/styled-jsx.md) ^2.2.4

## 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

- 1.0.3 (latest) — 2019-07-08
- 1.0.2 — 2018-02-26
- 1.0.1 — 2018-02-26

## README

# react-youtube-embed

A responsive YouTube embed component for React.

## Install

With npm:

```bash
npm install --save react-youtube-embed
```

With Yarn:

```bash
yarn add react-youtube-embed
```

## Usage

```jsx
import YouTube from 'react-youtube-embed'

...

<YouTube id='A71aqufiNtQ' />
```

## Options

- `aspectRatio`: Set an aspect ratio or percentage. Default: `"16:9"`
- `prependSrc`: Prepends a string to the embed URL (before the YouTube ID). Default: `"https://www.youtube.com/embed/"`
- `appendSrc`: Appends a string to the embed URL. Default: `""`

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