# youtube-embedded-component

> A React component for embedding YouTube videos.

Latest version **1.0.8** (published 2023-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install youtube-embedded-component
pnpm add youtube-embedded-component
yarn add youtube-embedded-component
bun add youtube-embedded-component
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2023-09-27 |
| First published | 2023-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Superjim |
| Maintainers | superjim |
| Keywords | react, youtube, component, responsive, embed |

## Links

- npm: https://www.npmjs.com/package/youtube-embedded-component
- Repository: https://github.com/Superjim/youtube-embedded-component
- Homepage: https://github.com/Superjim/youtube-embedded-component#readme
- Issues: https://github.com/Superjim/youtube-embedded-component/issues
- npm.io page: https://npm.io/package/youtube-embedded-component

## 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.8 (latest) — 2023-09-27
- 1.0.7 — 2023-09-27
- 1.0.6 — 2023-09-27
- 1.0.5 — 2023-09-27
- 1.0.4 — 2023-09-27
- 1.0.3 — 2023-09-27
- 1.0.2 — 2023-09-27
- 1.0.1 — 2023-09-27

## README

# Documentation for Youtube Embedded Component

## Introduction

Youtube Embedded Component is a simple project to take a Youtube video and embed it in a way that it can be responsive.

Built following Projectbook specifications:

https://projectbook.code.brettchalupa.com/web-components/responsive-youtube-embed.html

## Installation

You can install the component from npm using the following command:

```
npm install youtube-embedded-component
```

## Usage

Once installed, you can use the component in your React application as follows:

jsx

```
import YoutubeEmbed from 'youtube-embedded-component';

function App() {
    return (
        <div className="App">
            <h1>Title</h1>
            <YoutubeEmbed
            id="dQw4w9WgXcQ"
            startTime={30}
            privacyEnhanced={true}
            maxWidth="600px"
            width="100%"
            />
        </div>
    );
}
```

## Props

The component accepts the following props:

###### Required

    id: The YouTube video ID, Full YouTube URL, or YouTube Embed URL.

###### Optional

    startTime: The start time of the video in seconds.

    privacyEnhanced: true / false

    maxWidth: Control the maximum width of the video container. Default 100%.

    width (optional): Set the exact width of the container. Default 100%.

## License

This package is open-source and released under the MIT License.

## Contact

For questions or support, please email me at jamesjenkinson10@gmail.com

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