A Visual Studio Code extension for Shadcnui UI components snippets. Quickly insert reusable code snippets for Shadcnui components, enhancing your development workflow with ease.
This extension contains code snippets for Shadcnui for React. It is based on the Shadcnui documentation. This Snippets only provide the Body of the component. You can add the props according to your need. Also Need to import the component from Shadcnui.
sc-accordion
- Shadcnui Container component | Docssc-alert
- Shadcnui Alert component | Docssc-alert-error
- Shadcnui Alert Error component | Docssc-alert-dialog
- Shadcnui Alert Dialog component | Docssc-aspect-ratio
- Shadcnui Aspect Ratio component | Docssc-avatar
- Shadcnui Avatar component | Docssc-badge
- Shadcnui Badge component | Docssc-button
- Shadcnui Button component | Docssc-calendar
- Shadcnui Calendar component | Docssc-card
- Shadcnui Card component | Docssc-carousel
- Shadcnui Carousel component | Docssc-carousel-vertical
- Shadcnui Carousel Vertical component | Docssc-checkbox
- Shadcnui Checkbox component | Docssc-collapsible
- Shadcnui Collapsible component | Docssc-combobox
- Shadcnui Combobox component | Docssc-context-menu
- Shadcnui Context Menu component | Docssc-command
- Shadcnui Command component | Docssc-datepicker
- Shadcnui Date Picker component | Docssc-dialog
- Shadcnui Dialog component | Docssc-drawer
- Shadcnui Drawer component | Docssc-dropdown
- Shadcnui Dropdown component | Docssc-input
- Shadcnui Input component | Docssc-menubar
- Shadcnui Menubar component | Docssc-navigation-menu
- Shadcnui Navigation Menu component | Docssc-progress
- Shadcnui Progress component | Docssc-tooltip
- Shadcnui Tooltip component | Docssc-toggle
- Shadcnui Toggle component | Docssc-toggle-group
- Shadcnui Toggle Group component | Docssc-toast
- Shadcnui Toast component | Docssc-tabs
- Shadcnui Tabs component | Docssc-table
- Shadcnui Table component | Docssc-textarea
- Shadcnui Textarea component | Docssc-switch
- Shadcnui Switch component | Docs
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or using the keyboard shortcut
Ctrl+Shift+X
. - Search for "shadcnui-snippet" in the Extensions view search box.
- Install the extension by clicking the "Install" button.
- Open a file with a supported language (e.g., JSX, JS, TS,TSX).
- Type the prefix for a Shadcnui component snippet (e.g.,
sc-button
). - Press
Tab
to expand the snippet, and fill in the placeholders for customizable parts.
- JavaScript (.js)
- TypeScript (.ts)
- JavaScript React (.jsx)
- TypeScript React (.tsx)
If you find any missing components, please open an issue or submit a pull request.