Giter Site home page Giter Site logo

selemondev / vscode-shadcn-svelte Goto Github PK

View Code? Open in Web Editor NEW
68.0 3.0 5.0 2.25 MB

Shadcn Svelte VSCode extension to help you install and use components directly without leaving your IDE ✨.

Home Page: https://marketplace.visualstudio.com/items?itemName=Selemondev.vscode-shadcn-svelte&ssr=false#overview

License: MIT License

TypeScript 100.00%
shadcn-svelte snippet snippets svelte shadcn-svelte-snippet shadcn-svelte-snippets svelte-snippets svelte-typescript-snippets

vscode-shadcn-svelte's Introduction

shadcn-svelte

This VSCode extension enables you to install shadcn/svelte components directly from your IDE ✨.

Initialize the Shadcn/Svelte CLI

to initialize CLI open the command palette and search for shadcn/svelte: install cli command

Install components

to initialize CLI open the command palette and search for shadcn/svelte: add new component

Choose a component to install from the list

choose a component to install from the list

Install multiple components

install multiple components

Choose components to install from the list

choose components to install from the list

Open the Shadcn-Svelte documentation

open the shadcn-svelte documentation

Navigate to a particular component's documentation page

navigate to a particular component's documentation page

Shadcn/Svelte Snippets

Easily import and use shadcn-svelte components with ease using snippets within VSCode. Just type cn or shadcn in your svelte file and choose from an array of components to use.

shadcn-svelte-snippets-example

How it works

Snippet Description
cn-help How to use shadcn/svelte snippets
cni-[component] Adds imports for the component
cnx-[component] Adds the markup for the svelte component

How to use?

  1. Components

For Alert component, type cni-alert to add imports in your svelte file, and to use the component, use cnx-alert.

Similarly, for any other component, use cni-[component] to add imports and cnx-[component] to use.

// cni-alert
import * as Alert from "$lib/components/ui/alert"

// cnx-alert
<Alert.Root>
  <Alert.Title>Heads up!</Alert.Title>
  <Alert.Description>
    You can add components to your app using the cli.
  </Alert.Description>
</Alert.Root>

How to contribute?

Contributions are welcome and encouraged! If you have any ideas or suggestions for new features, or if you encounter any bugs or issues, please open an issue or submit a pull request on the GitHub repository.

Developers interested in contributing should read the Code of Conduct and the Contributing Guide.

Use this link - Snippet Generation to generate snippets and add/update them to the snippets folder that is located in the src accordingly.

Credits

All credits go to the creators of these amazing projects:

  • Shadcn UI for creating this amazing project.
  • Shadcn Svelte for creating the Svelte port of Shadcn UI.
  • Bits UI for doing all the hard work to make sure components are accessible.

vscode-shadcn-svelte's People

Contributors

antontyrberg avatar bxnq avatar coryvirok avatar selemondev avatar songlim327 avatar svenissimo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vscode-shadcn-svelte's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.