Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JSX PreviewNew to Visual Studio Code? Get it now.
JSX Preview

JSX Preview

vscode-jsx-preview

|
3 installs
| (0) | Free
Preview JSX elements by hovering and clicking
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSX Preview

Preview JSX/TSX elements visually in VS Code without leaving the editor. No browser or dev server required.

Usage

  1. Open a .tsx / .jsx file
  2. Hover over a JSX element
  3. Click the JSX Preview link
  4. A side panel opens with the rendered preview

The preview auto-updates every time you save the file.

Supported Features

  • HTML elements — <div>, <button>, <input>, etc.
  • Tailwind CSS — Uses your project's tailwind.config.js (custom colors, themes, etc.)
  • CSS imports — Styles from import "./style.css" are applied
  • npm packages — Libraries like react-icons work out of the box
  • Mixed styling — Tailwind classes and CSS imports can be used together

Requirements

  • react and react-dom installed in your project
  • tailwindcss installed for Tailwind support (optional)

How It Works

Internally uses esbuild to bundle the JSX block with its imports, then runs React inside a Webview. This renders components the same way your app does, so styles and components are reflected accurately.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft