The @streamlit/component-v2-lib package provides TypeScript type definitions and utilities for building Streamlit custom components using the v2 API.

Install the package from npm:

npm i @streamlit/component-v2-lib
  • Package name: @streamlit/component-v2-lib
  • Registry: npm
  • Purpose: TypeScript type aliases and utilities for custom components v2

This package enables type-safe development when creating custom Streamlit components with modern JavaScript frameworks.

forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.