• Docs
  • Components
  • Blocks
  • Admin
CtrlK
Get Started
  • Introduction
  • Setup
  • CLI
  • VS Code Extension
  • Figma Code Connect
  • MCP Server
  • llms.txt
  • Changelog
Foundations
  • Design Tokens
  • Theming & Modes
  • Semantic Colors
  • Spacing
  • Typography
Testing
  • Test Guide
  • Performance Tests
  • Visual Regression
Components
  • Accordion
  • Activity Feed
  • Alert
  • Avatar
  • Badge
  • Breadcrumbs
  • Button
  • Card
  • Carousel
  • Checkbox
  • Collapsible
  • Combobox
  • Command Palette
  • Context Menu
  • Date Picker
  • Dialog
  • Dropdown Menu
  • File Upload
  • Hover Card
  • Input
  • Kbd
  • Label
  • Menubar
  • Metric Card
  • Multi Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Quick Actions
  • Radio
  • Rating
  • Resizable
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Skeleton
  • Slider
  • Spinner
  • Split Button
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree View
Blocks
  • Activity Feed
  • App Shell
  • Authentication Block
  • Benefits Section
  • Cta Section
  • Data Table
  • Empty State
  • Faq Section
  • Feature Grid Section
  • Footer Section
  • Hero Section
  • Kpi Dashboard
  • Kpi Strip
  • Link Card
  • Metric Card
  • Navigation Header
  • Pagination Footer
  • Pricing Table
  • Quick Actions
  • Settings Screen
Resources
  • API Reference
CLIFigma Code Connect

VS Code Extension

Set up the Fragment UI extension in VS Code.

The Fragment UI VS Code Extension enhances your development workflow by providing intelligent autocomplete, hover documentation, code snippets, and quick actions for Fragment UI components. It helps you write code faster and with fewer errors by providing context-aware suggestions and documentation directly in your editor.

Key Features

  • Intelligent autocomplete for Fragment UI components
  • Hover documentation with component details
  • Pre-built code snippets for common components
  • Quick actions (add component, open docs, open Storybook)
  • Component search in command palette

Installation

From source (current)

cd packages/vscode-extension
pnpm install
pnpm build
pnpm package
# Install the .vsix file
code --install-extension fragment-ui-*.vsix

From Marketplace (coming soon)

This extension is not guaranteed to be published yet. If/when it is available, the extension id will be:

code --install-extension fragment-ui.fragment-ui

Features

Autocomplete

Get intelligent autocomplete suggestions when typing Fragment UI component names:

import { Bu| // Type "Bu" and see Button suggestion
import { Button } from "@fragment_ui/ui";

Hover Documentation

Hover over any Fragment UI component to see its documentation, props, and usage examples:

<Button variant="solid" size="sm">
  Click me
</Button>
// Hover over "Button" to see documentation

Code Snippets

Use pre-built snippets for common components:

// Type "fui-button" and press Tab
<Button variant="solid" size="md">
  Button
</Button>

Quick Actions

Use Command Palette (Cmd+Shift+P / Ctrl+Shift+P) to access quick actions:

  • Fragment UI: Add Component - Add a component to your project
  • Fragment UI: Open Documentation - Open component docs in browser
  • Fragment UI: Open Storybook - Open component in Storybook
  • Fragment UI: Search Components - Search for components
  • Fragment UI: Open in Playground - Open component in playground
  • Fragment UI: Copy Component Code - Copy component code to clipboard

Configuration

Configure the extension in VS Code settings:

{
  "fragment-ui.docsUrl": "http://localhost:3001",
  "fragment-ui.storybookUrl": "http://localhost:6006"
}

Requirements

  • VS Code 1.74.0+

Keyboard Shortcuts

  • Cmd+Shift+P (Mac) / Ctrl+Shift+P (Windows/Linux) - Open Command Palette
  • Cmd+. (Mac) / Ctrl+. (Windows/Linux) - Quick Actions

Learn More

  • Extension Documentation
  • Available Components
  • Storybook
CLIFigma Code Connect