@livelike/tf1-components
TypeScript icon, indicating that this package has built-in type declarations

2.0.11 • Public • Published

TF1 Livelike Hug Room

This package exposes TF1 hug room component.

Installation

Install package with npm

  npm install @livelike/tf-hug-room

Usage

Once dependency is added to project. You need to use LLHugMainComponent to render Hug Room UI.

Example:

import './App.css';
import { LLHugMainComponent, useLivelikeInit } from '@livelike/tf-hug-room';


function App() {
  const clientId = '{your-client-id}';
  const { loaded: livelikeLoaded, profile } = useLivelikeInit({
    clientId: clientId
  })
  
  if (!livelikeLoaded) {
    return (
      <p>Loading...</p>
    );
  }

  if (!profile) {
    return <p>Error In Loading livelike...</p>
  }

  return (
    <div className="App">
    <LLHugMainComponent clientId="{clientId}" customId="tf1live"></LLHugMainComponent>
    </div>
  );
}

export default App;```

Readme

Keywords

none

Package Sidebar

Install

npm i @livelike/tf1-components

Weekly Downloads

49

Version

2.0.11

License

ISC

Unpacked Size

745 kB

Total Files

66

Last publish

Collaborators

  • naveennayyar007
  • shailander
  • changdeo
  • livelikejustin
  • harshitachugh
  • stefan-atanasovski
  • ljupco
  • aquib-livelike