A template for adding a Shadcn UI component to a project.

Introduction

This template integrates Shadcn UI components into a project, similar to running the shadcn add command but structured as a reusable template.

If Shadcn UI is not already configured, the template automatically handles the setup.

Usage

Add the action to import the template:

{
"name": "import",
"template": "shadcn-ui://component",
"options": {
"components": ["button", "badge"]
}
}

Options

The following options are available for this template:

OptionDescriptionRequiredDefault
componentsThe names of the Shadcn UI components to add.YesNone

Start building in seconds

Paste the following command in your terminal and let the CLI do the rest.

npx croct@latest init