vscrui
v0.2.0
Published
A React components library for building webview-based extensions with React in Visual Studio Code.
Downloads
155
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:
- [x] Badge
- [x] Button
- [x] Checkbox
- [x] Divider
- [x] Dropdown
- [x] Icon
- [x] Label
- [x] Loader
- [x] Pane (collapsible)
- [x] Panels
- [x] Table
- [x] Tag
- [x] TextArea
- [x] 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
- Clone the repository
- Run
npm install
- Run
npm run storybook
to start the development server - Open the
http://localhost:6006
in your browser - Test out the components or make changes to the library