# Custom-type and slice reusability

**URL:** <https://community.prismic.io/t/custom-type-and-slice-reusability/1946>\
**Category:** Developing with Prismic\
**Created:** [September 21, 2020, 2:05pm UTC](https://community.prismic.io/t/custom-type-and-slice-reusability/1946 "2020-09-21T14:05:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.cawthorn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/thomas.cawthorn/32/563_2.png) [@thomas.cawthorn](https://community.prismic.io/u/thomas.cawthorn)\
**Post date:** [September 21, 2020, 2:05pm UTC](https://community.prismic.io/t/custom-type-and-slice-reusability/1946/1 "2020-09-21T14:05:04Z")

</div>

Hi,

We are looking to simplify and reduce duplication of custom-type and slice setup.

**Goal**

- Create a shared library of commonly used components across multiple pages
- Shared components are accessible to multiple team members
- Updating those shared components will propagate changes everywhere without manual intervention

We've identified that point 1 is possible with 'slices', but we haven't found a solution that covers all 3.

Can you advise the best way we might achieve this?

Thanks!

Tom

---

<div class="post-metadata">

**Author:** ![marcellothearcane](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/marcellothearcane/32/224_2.png) [@marcellothearcane](https://community.prismic.io/u/marcellothearcane)\
**Post date:** [September 22, 2020, 1:45pm UTC](https://community.prismic.io/t/custom-type-and-slice-reusability/1946/2 "2020-09-22T13:45:24Z")

</div>

What about creating an internal NPM package?

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [September 23, 2020, 3:11am UTC](https://community.prismic.io/t/custom-type-and-slice-reusability/1946/3 "2020-09-23T03:11:57Z")

</div>

Hey Tom, thanks for reaching out!

let's go over each one of the cases:

- As you've discovered 'shared slices' are possible thanks to the [Slice library](https://user-guides.prismic.io/en/articles/1795688-reuse-a-slice-in-another-custom-type). Slices you've saved here will be available in all other Custom types and also in all other repositories you own!

- Right now the only way to grant or limit access to other team members using [User roles](https://user-guides.prismic.io/en/articles/780677-users-roles-and-the-publication-workflow), which is available starting from professional plans. For Basic plans all uses have administrator rights.

- When you update a Slice, this won't be automatically updated in the Slice Library, you need to manually replace it for the changes to be reflected.

You could also do a 'manual backup'. You can keep a copy of the custom types in your codebase as it's reflected there in the code and use github to version control your custom types. You can read more about that here:

> **[How to version custom types](https://user-guides.prismic.io/en/articles/380233-how-to-version-custom-types)**
>
> Using github to version control your custom types

And, if you have accidentally deleted a custom type, you can retrieve it.

> **[Recover a Deleted Custom Type](https://user-guides.prismic.io/en/articles/2033691-recover-a-deleted-custom-type)**
>
> How to recover an old Custom Type that has been deleted

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [September 25, 2020, 8:03pm UTC](https://community.prismic.io/t/custom-type-and-slice-reusability/1946/5 "2020-09-25T20:03:21Z")

</div>

closed on September 25, 2020, 8:03pm UTC, flag & select 'Something Else' to reopen.

This issue has been closed due to inactivity.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 12:21pm UTC](https://community.prismic.io/t/custom-type-and-slice-reusability/1946/6 "2021-12-09T12:21:56Z")

</div>

Opened on December 9, 2021, 12:21pm UTC


