# Contentment 6 using Custom Web Component

**URL:** <https://forum.umbraco.com/t/contentment-6-using-custom-web-component/7004>\
**Category:** Questions\
**Tags:** contentment\
**Created:** [December 16, 2025, 2:02pm UTC](https://forum.umbraco.com/t/contentment-6-using-custom-web-component/7004 "2025-12-16T14:02:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![keck-marcel](https://forum.umbraco.com/user_avatar/forum.umbraco.com/keck-marcel/32/1745_2.png) [@keck-marcel](https://forum.umbraco.com/u/keck-marcel)\
**Post date:** [December 16, 2025, 2:02pm UTC](https://forum.umbraco.com/t/contentment-6-using-custom-web-component/7004/1 "2025-12-16T14:02:18Z")

</div>

This question is most appropriate for @leekelleher, however, putting it out in the wild for the community.

We just upgraded from Umbraco 13 to Umbraco 17 and with that we brought Contentment to version 6.

I have written a custom Lit Component which is used inside the list editor with a “Custom Component List” option like so:

 ![image](https://forum.umbraco.com/uploads/default/original/2X/2/2ef339506d85d1c0a2ca54322f25f4968b081cf5.png)

This component defines each item respectively and does what we need.

However, inside the Lit Element we utilize

 ![image](https://forum.umbraco.com/uploads/default/original/2X/5/5f20b7c52b59e507107629c2da1e6e841869a83f.png)

Where the `../contentment/…` is our own folder. I have had to pull the ContentmentListItem and ContentmentDataListItemUiElement across into our own types as trying to find a direct reference from Contentment was harder than anticipated

Is there a way to directly reference these types from Contentment so that you don’t need to include them directly?

Best,

Kyle

---

<div class="post-metadata">

**Author:** ![leekelleher](https://forum.umbraco.com/user_avatar/forum.umbraco.com/leekelleher/32/121_2.png) [@leekelleher](https://forum.umbraco.com/u/leekelleher)\
**Post date:** [December 16, 2025, 2:18pm UTC](https://forum.umbraco.com/t/contentment-6-using-custom-web-component/7004/2 "2025-12-16T14:18:40Z")

</div>

Hi Kyle,

I don’t know of a way that the TypeScript definitions can be referenced from the NuGet package itself.

My assumption is that I’ll need to release a separate NPM package for the TypeScript definitions. BUT! I’ve never done this before, so it’ll be a learning curve for me. 😬

If anyone has any suggestions or guides I can read up on… or better yet, contribute to the repository, that would be hugely appreciated. Otherwise I’ll figure it out over the upcoming weeks (months). 😅

---

<div class="post-metadata">

**Author:** ![keck-marcel](https://forum.umbraco.com/user_avatar/forum.umbraco.com/keck-marcel/32/1745_2.png) [@keck-marcel](https://forum.umbraco.com/u/keck-marcel)\
**Post date:** [December 16, 2025, 2:32pm UTC](https://forum.umbraco.com/t/contentment-6-using-custom-web-component/7004/3 "2025-12-16T14:32:11Z")

</div>

Lee,

Not a problem - I wasn’t sure if you exposed the types in another package elsewhere we could consume.

I’d imagine something like a `Contentment.Client` package might be one way to go about it.

Thanks for the confirmation! Hope all is well

---

<div class="post-metadata">

**Author:** ![bjarnef](https://forum.umbraco.com/user_avatar/forum.umbraco.com/bjarnef/32/410_2.png) [@bjarnef](https://forum.umbraco.com/u/bjarnef)\
**Post date:** [February 24, 2026, 10:42am UTC](https://forum.umbraco.com/t/contentment-6-using-custom-web-component/7004/4 "2026-02-24T10:42:55Z")

</div>

I was looked at this as well via bundle manifest.

```TS
import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';
import { manifests as contentmentExtensions } from "./contentment/manifests.js";

export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> = [
  ...contentmentExtensions,
];

```

`contentment` folder:

```auto
import { manifests as dataListItemUis } from './data-list-item-ui/manifests.js';
import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';

export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> = [
	...dataListItemUis,
];

```

`data-list-item-ui` folder:

```TS
import { manifest as colorSwatch } from './color-swatch/manifest.js';

export const manifests: Array<UmbExtensionManifest> = [colorSwatch];

```

and `color-swatch` folder:

```TS
import type { ContentmentDataListItemUiExtentionManifestType } from './../../data-list-item-ui.extension.js';

export const manifest: ContentmentDataListItemUiExtentionManifestType = {
    type: 'contentmentDataListItemUi',
    alias: 'Umb.Contentment.DataListItemUi.ColorSwatch',
    name: 'Color Swatch',
    element: () => import('./color-swatch.element.js'),
    meta: {
		label: 'Color Swatch',
		icon: 'icon-paintbrush',
	},
};

```

Maybe I am missing something obvious, but I couldn’t made it pick up the extension of `contentmentDataListItemUi` 🙈

 ![image](https://forum.umbraco.com/uploads/default/original/2X/6/63c592422130205750b8a2d1f4b6bd6c1c19851f.png)

---

<div class="post-metadata">

**Author:** ![bjarnef](https://forum.umbraco.com/user_avatar/forum.umbraco.com/bjarnef/32/410_2.png) [@bjarnef](https://forum.umbraco.com/u/bjarnef)\
**Post date:** [February 24, 2026, 6:26pm UTC](https://forum.umbraco.com/t/contentment-6-using-custom-web-component/7004/5 "2026-02-24T18:26:18Z")

</div>

It seems to work if I used this instead:

```TS
import { manifests as dataListItemUis } from './data-list-item-ui/manifests.js';
//import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';

export const manifests: Array<UmbExtensionManifest> = [
	...dataListItemUis,
];

```

```TS
import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';

import { manifests as contentmentExtensions } from "./contentment/manifests.js";

// Job of the bundle is to collate all the manifests from different parts of the extension and load other manifests
// We load this bundle from umbraco-package.json
export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> = [
  ...contentmentExtensions,
];

```

It seems it caused issue having `UmbExtensionManifestKind` included in `Array<UmbExtensionManifest>`.
