0.26.0 • Public • Published

TwicPics Components

NPM Version License

TwicPics Components

What is TwicPics?

We've recently launched TwicPics for videos. Read the announcement. 🚀

TwicPics is a Responsive Media Service Solution (SaaS) that enables on-demand responsive image & video generation.

With TwicPics, developers only deal with high-resolution versions of their media while end-users receive optimized, perfectly sized, device-adapted versions delivered from a server close to them.

TwicPics acts as an proxy. It retrieves your master file — from your own web server, cloud storage, or DAM — and generates a device-adapted version with best-in-class compression, delivered directly to the end-user from the closest delivery point available.

What is TwicPics Components?

TwicPics Components is a collection of web components that make it dead easy to unleash the power of TwicPics in your own projects.

TwicPics Components are a drop-in replacement for <img> and <video> tags with optimized Cumulative Layout Shift (CLS), low-quality image placeholders, and lazy loading out of the box.

<!-- Before -->
<img src="https://assets.twicpics.com/examples/football.jpg" />

<!-- After -->
<TwicImg src="https://assets.twicpics.com/examples/football.jpg" />

Supported frameworks

Online demonstrations

Regardless of the framework you work with, TwicPics is the most efficient solution to deliver your images and your videos and make them as responsive as desired.

Explore our demos and integration examples for :

Questions and feedback

Fell free to submit an issue or to ask us anything by dropping an email at support@twic.pics.

Package Sidebar


npm i @twicpics/components

Weekly Downloads






Unpacked Size

1.55 MB

Total Files


Last publish


  • mbgspcii
  • florentb
  • jaubourg
  • balda