Skip to content
/ vscrui Public

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

License

Notifications You must be signed in to change notification settings

estruyf/vscrui

Repository files navigation

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project