Getting started
Installation
$ yarn add @videodock/tile-slider
$ npm install @videodock/tile-slider
$ pnpm install @videodock/tile-slider
Import
Start by importing the TileSlider
component. Optionally, import the typings and default styling as well.
App.tsx
import { TileSlider } from '@videodock/tile-slider';
// Optional typings when using TypeScript
import type { RenderTile, RenderControl, RenderPagination } from '@videodock/tile-slider';
// Default styling (import once)
import '@videodock/tile-slider/lib/style.css';