# Component

Source: https://docs.streamlit.io/develop/api-reference/custom-components/component-v2-lib

## `@streamlit/component-v2-lib`

The [`@streamlit/component-v2-lib`](https://www.npmjs.com/package/@streamlit/component-v2-lib) package provides TypeScript type definitions and utilities for building Streamlit custom components using the v2 API.

### Installation

Install the package from npm:

```bash
npm i @streamlit/component-v2-lib
```

### Package Information

- **Package name**: `@streamlit/component-v2-lib`
- **Registry**: [npm](https://www.npmjs.com/package/@streamlit/component-v2-lib)
- **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.
