Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/selemondev/vscode-shadcn-solid
This VSCode extension enables you to install shadcn/solid components directly from your IDE ✨.
https://github.com/selemondev/vscode-shadcn-solid
shadcn-solid shadcn-solidjs snippets solidjs solidjs-frontend solidjs-snippets solidjs-typescript vscode-extension
Last synced: 22 days ago
JSON representation
This VSCode extension enables you to install shadcn/solid components directly from your IDE ✨.
- Host: GitHub
- URL: https://github.com/selemondev/vscode-shadcn-solid
- Owner: selemondev
- License: mit
- Created: 2024-01-04T20:44:23.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-02-06T11:34:08.000Z (9 months ago)
- Last Synced: 2024-02-06T13:36:51.777Z (9 months ago)
- Topics: shadcn-solid, shadcn-solidjs, snippets, solidjs, solidjs-frontend, solidjs-snippets, solidjs-typescript, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=Selemondev.vscode-shadcn-solid
- Size: 1.87 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
shadcn-solid
This VSCode extension enables you to install [shadcn/solid](https://solid-ui-components.vercel.app) components directly from your IDE ✨.
## Initialize the Shadcn/Solid CLI
![to initialize CLI open the command palette and search for shadcn/solid: install cli command](https://raw.githubusercontent.com/selemondev/vscode-shadcn-solid/master/src/assets/images/init-cli.png)
## Install components
![to initialize CLI open the command palette and search for shadcn/solid: add new component](https://raw.githubusercontent.com/selemondev/vscode-shadcn-solid/master/src/assets/images/add-new-component.png)
## Choose a component to install from the list
![choose a component to install from the list](https://raw.githubusercontent.com/selemondev/vscode-shadcn-solid/master/src/assets/images/add-new-component-preview.png)
## Install multiple components
![install multiple components](https://raw.githubusercontent.com/selemondev/vscode-shadcn-solid/master/src/assets/images/add-multiple-components.png)
## Choose components to install from the list
![choose components to install from the list](https://raw.githubusercontent.com/selemondev/vscode-shadcn-solid/master/src/assets/images/add-multiple-components-preview.png)## Open the Shadcn-solid documentation
![open the shadcn-solid documentation](https://raw.githubusercontent.com/selemondev/vscode-shadcn-solid/master/src/assets/images/shadcn-solid-docs.png)
## Navigate to a particular component's documentation page
![navigate to a particular component's documentation page](https://raw.githubusercontent.com/selemondev/vscode-shadcn-solid/master/src/assets/images/shadcn-solid-component-docs.png)
## Shadcn/solid Snippets
Easily import and use shadcn-solid components with ease using snippets within VSCode. Just type `cn` or `shadcn` in your solid file and choose from an array of components to use.
![shadcn-solid-snippets-example](https://raw.githubusercontent.com/selemondev/vscode-shadcn-solid/master/src/assets/images/shadcn-solid-import.png)
### How it works
| Snippet | Description |
| ----------------- | -------------------------------------- |
| `cn-help` | How to use shadcn/solid snippets |
| `cni-[component]` | Adds imports for the component |
| `cnx-[component]` | Adds the markup for the component|### How to use?
1. Components
For `Alert` component, type `cni-alert` to add imports in your Solid 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.
```tsx
// cni-alert
import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert"// cnx-alert
Heads up!
You can add components and dependencies to your app using the cli.
```
### 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](./CODE_OF_CONDUCT.md) and the [Contributing Guide](./CONTRIBUTING.md).
Use this link - [Snippet Generation](https://snippet-generator.app/?description=https%3A%2F%2Fsolid-ui-components.vercel.app%2Fdocs%2Fcomponents&tabtrigger=shadcn-&snippet=&mode=vscode) 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](https://ui.shadcn.com) for creating this beautiful project.
- [Shadcn solid](https://solid-ui-components.vercel.app/) for creating the Solid port of Shadcn UI.
- [Kobalte](https://kobalte.dev/docs/core/overview/introduction) for doing all the hard work to make sure components are accessible.