Package Exports
- vscrui
 - vscrui/dist/index.js
 
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vscrui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Visual Studio Code - React UI Library (vscrui)
[!WARNING] This project is in an early stage of development. Feel free to contribute or use it at your own risk.
The vscrui is a React components library for building webview-based extensions with React in Visual Studio Code.
[!NOTE] The library is based on the VS Code Webview UI Toolkit, which has announced to be deprecated on January 1, 2025. See the deprecation announcement for more details. Instead of providing web components, this library provides React components.
Contributing
If you want to contribute, please find an open issue you would like to work on and leave us a comment. If you have any questions, feel free to ask in the issue or in the Discord server.
Components
The following components are available in the library:
- Badge
 - Button
 - Checkbox
 - Divider
 - Dropdown
 - Icon
 - Label
 - Loader
 - Pane (collapsible)
 - Panels
 - Table
 - Tag
 - TextArea
 - TextField
 
[!WARNING] When using the
Iconcomponent, make sure to import the Codicon CSS file in your project. You can use the following import statement:import 'vscrui/dist/codicon.css';.
Future Components
- Tooltip
 - Multi-select
 
Installation
To install the library, run the following command:
npm install vscruiUsage
To use the library, import the components you need and use them in your React components:
import { Badge, Button, Checkbox, Label, Tag } from "vscrui";Development
- Clone the repository
 - Run 
npm install - Run 
npm run storybookto start the development server - Open the 
http://localhost:6006in your browser - Test out the components or make changes to the library
 
References
- https://github.com/facebook/sapling/tree/main/addons/components
 - https://github.com/microsoft/vscode-webview-ui-toolkit
 
Sponsors
If you find this project useful, please consider becoming a sponsor to help Open Source sustainable. Thank you!