# Publishing a library

### Publishing a block library

A block library is **a model containing a collection of blocks** that you can **curate and share with other users**. Let's dive in and see how to create such a library!

* Start from a model where you have **blocks you want to share.**
* Click on the **`Share`** button, in the top-right of the editor.
* Select the **`Libraries`** tab and **toggle `Publish blocks`** on.

<figure><img src="/files/ZiAk7kck5aWtdlsKZlfT" alt=""><figcaption></figcaption></figure>

Now, open any other **model** located in the same **organization**. Inside that model...

* Navigate to the **`Blocks`** panel
* Open the **`Libraries`** tab
* You will now see a **`My libraries`** section containing the blocks you published earlier

<figure><img src="/files/Qy8PsucQQOZfLnlzUD0h" alt=""><figcaption></figcaption></figure>

Once inside that library, you may import the **individual** blocks of the **library into your model.**

<figure><img src="/files/ZYPJTKc8EOrENbR9IAsQ" alt=""><figcaption></figcaption></figure>

### Publishing a style library

The same principle applies. A style library is **a model containing a collection of styles** that you can **curate and open to other users**.

* Start from a model where you have **styles you want to share.**
* Click on the **`Share`** button, in the top-right of the editor.
* Select the **`Libraries`** tab and **toggle `Publish styles`** on.

<figure><img src="/files/AY0SOkEBrMQa0e7qrl1Q" alt=""><figcaption></figcaption></figure>

Now, open any other **model** located in the same **organization**. Inside that model...

* Navigate to the **`Styles`** panel
* Open the **`Libraries`** tab
* You will now see a **`My libraries`** section containing the styles you published earlier

<figure><img src="/files/q0RttlsyhxdA6nNoD9NB" alt=""><figcaption></figcaption></figure>

Once inside that library, you may import the **individual** styles of the **library into your model.**

<figure><img src="/files/USrBR4e5mTrTi2M4wqGp" alt=""><figcaption></figcaption></figure>

### Tutorial

For more step-by-step information, watch our tutorial about how to create style and block libraries in Rayon.

{% embed url="<https://www.youtube.com/watch?v=cKbjnV-b0pc>" %}

***

### We are always available

Book a demo with our team, [right here](https://b1kzip68v9f.typeform.com/to/Hgr0eQ4k#source=docs).\
To get some support, reach out to us through our **in-app support chat**. \
More about [our support policy right here](/other-resources/others/support.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rayon.design/documentation/publishing-and-sharing/publishing-a-library.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
