# @croudtech/cc-v3-base

> Shared assets for V3 projects

Latest version **1.1.0** (published 2021-10-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @croudtech/cc-v3-base
pnpm add @croudtech/cc-v3-base
yarn add @croudtech/cc-v3-base
bun add @croudtech/cc-v3-base
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-10-26 |
| First published | 2018-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | paul-watkins-croud, croud_admin, brockreece |

## Links

- npm: https://www.npmjs.com/package/@croudtech/cc-v3-base
- npm.io page: https://npm.io/package/@croudtech/cc-v3-base

## Dependencies (3)

- [@croud-ui/vue-card](https://npm.io/package/@croud-ui/vue-card.md) ^0.0.3
- [@croud-ui/vue-avatar](https://npm.io/package/@croud-ui/vue-avatar.md) ^1.1.2
- [@croud-ui/vue-heading](https://npm.io/package/@croud-ui/vue-heading.md) ^0.0.1

## Recent versions

- 1.1.0 (latest) — 2021-10-26
- 1.0.0 (prerelease) — 2020-08-04
- 0.0.2-1 — 2018-08-29
- 0.0.2-0 — 2018-08-29

## README

# CC-V3-Base

## Installation

Install the scoped package via the command line

```shell
yarn add @croudtech/cc-v3-base
```

## Components

### A La Carte Menu

You can globally add a selection of the components by using the aLaCarte module in your `nuxt.config.js`

| Option     | Description                                                                  | Default |
| ---------- | ---------------------------------------------------------------------------- | ------- |
| components | Array of components that you wish to add to the global scope of your project | `[]`    |
| prefix     | Add a prefix to all global components above                                  | `''`    |

```js
// nuxt.config.js
modules: [
  [
    "@croudtech/cc-v3-base/modules/aLaCarte",
    {
      components: ["FormBuilder", "Slider", "Reveal", "Scheduler"],
      prefix: "Base" // optional
    }
  ]
];
```

You can now use any of these in the template of your components

```html
<!-- no prefix -->
<form-builder></form-builder>
<!-- prefix: 'Base' -->
<base-form-builder></base-form-builder>
```

### Manual

The components can also be individually imported into your components with the following technique.

```js
// MyComponent.vue
import FormBuilder from "@croudtech/cc-v3-base/components/FormBuilder";

export default {
  components: {
    FormBuilder
  }
};
```

---
_Source: https://npm.io/package/@croudtech/cc-v3-base · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
