1.0.0-beta.1 • Published 5 years ago

lit-book v1.0.0-beta.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Lit Book

NPM version NPM downloads

About

Add Facebook Page Plugin to your site as Web Component

How to Install

First, install the library in your project by npm:

$ npm install lit-book

Or Yarn:

$ yarn add lit-book

Getting Started

Connect libary with project using script tag in HTML:

<script type="module" src="/path/to/lit-book.js"></script>

ES6 import:

import 'lit-book';

Props

NameTypeDefaultDescriptionAvailable options
hrefstringFacebook site URLe.g: https://www.facebook.com/facebook
tabsstringtimelineType of data to displaytimeline, messages, events
widthnumber340Container widthmin. 180, max. 500
heightnumber500Container heightmin. 70
smallHeaderbooleanfalseDisplay small headertrue (small), false (big)
adaptContainerWidthbooleantrueAdapt container width to wrapper sizetrue (enable), false (disable)
hideCoverbooleanfalseHide page background imagetrue (hide), false (show)
showFacepilebooleantrueShow users facepilestrue (show), false (hide)
languagestringen_ENSet frame languagelanguage code
fluidFramebooleantrueUpdate frame size after window resizetrue (enable), false (disable)

Example

<lit-book
  href="https://www.facebook.com/facebook"
  tabs="messages, events"
  width="384"
  smallHeader="true"
></lit-book>

License

This project is licensed under the MIT License © 2019-present Jakub Biesiada