JSPM

  • Created
  • Published
  • Downloads 3542
  • Score
    100M100P100Q118042F
  • License MIT

A React components library for building webview-based extensions with React in Visual Studio Code.

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 Icon component, 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 vscrui

Usage

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

  1. Clone the repository
  2. Run npm install
  3. Run npm run storybook to start the development server
  4. Open the http://localhost:6006 in your browser
  5. Test out the components or make changes to the library

References

Sponsors

If you find this project useful, please consider becoming a sponsor to help Open Source sustainable. Thank you!

Sponsor @estruyf


VSCRUI visitors


Struyf Consulting Logo