add slot
Learn how to add a slot to your project.
This command adds one or more slots to your project, regenerating type definitions and downloading fallback content accordingly.
Usage
This command has the following syntax:
croct add slot <slots> <options>Example
Add a slot interactively:
npm
npx croct@latest add slotAdd a specific slot:
npm
npx croct@latest add slot hero-bannerAdd multiple slots at once:
npm
npx croct@latest add slot hero-banner sidebar-ctaAdd a slot at a specific version:
npm
npx croct@latest add slot hero-banner@1Arguments
- slots(optional)Array<string>
One or more slots to add, separated by spaces.
You can specify a version for each slot using the @ symbol, for example hero-banner@1. If omitted, the CLI prompts you to select slots interactively.
Options
Besides the global options, this command accepts the following options:
- --example, -e(optional)boolean
Generate an implementation example.