remove component

Learn how to remove a component from your project.

This command removes one or more components from your project, regenerating type definitions accordingly.

Usage

This command has the following syntax:

croct remove component <components>

Example

Remove a component interactively:

npx croct@latest remove component

Remove a specific component:

npx croct@latest remove component my-component

Remove multiple components at once:

npx croct@latest remove component hero-banner sidebar-cta

Arguments

components(optional)
Array<string>

One or more components to remove, separated by spaces.

If omitted, the CLI prompts you to select components interactively.

Options

This command only accepts global options.