Usage

Guides and examples to use the Smart TV packages in your project.

Installing packages

Install the libraries you need. In a monorepo you can use workspace references.

pnpm add @smart-tv/ui @smart-tv/player @smart-tv/query

Basic example (UI)

Example component using the UI package.

import { Button } from '@smart-tv/ui'
export default function Example() {
return <Button>Play</Button>
}

Player example

A minimal Video player integration.

import { VideoPlayer } from '@smart-tv/player'
export default function Player() {
return <VideoPlayer src="/media/sample.mp4" />
}