lite-iframe
v0.3.0
Published
<br /> <p align="center"> <a href="https://github.com/asvny/lite-iframe"> <img src="https://raw.githubusercontent.com/asvny/lite-iframe/master/images/logo.png" alt="Logo" width="180" height="150"> </a>
Downloads
537
Readme
About The Project
Built With
Getting Started
To get a local copy up and running follow these simple steps.
- Install NPM packages
npm install lite-iframe
- Include the
lite-iframe
component file in your project root.
import 'lite-iframe';
OR
- You can include unpkg CDN link in the project file.
<script
src="https://unpkg.com/[email protected]/dist/lite-iframe.esm.js"
type="module"
></script>
Usage
You can use lite-iframe
like normal iframe.
<!-- Codepen -->
<lite-iframe
scrolling="no"
title="Piccalilli CSS Utility — Issue #2 — Full bleed utility"
src="//codepen.io/andybelldesign/embed/Nmxrwv/?height=300&theme-id=dark&default-tab=css,result"
frameborder="no"
allowtransparency="true"
allowfullscreen="true"
>
</lite-iframe>
<!-- Youtube -->
<lite-iframe
type="youtube"
src="https://www.youtube.com/embed/lzQyH-nX0u0"
></lite-iframe>
For live example, please see the demo
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Annamalai Saravanan - @asvny_
Project Link: https://github.com/asvny/lite-iframe