# Components

## Get Started

To edit the embed components, use the command `/create type:✨ Magic Embed` and select the `👆 Edit Components` option.

<figure><img src="https://1774748854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmtm6qMMlpBMQxEyJRV1d%2Fuploads%2F5ZRkIzRunDYooaMXYiTU%2Fimage.png?alt=media&#x26;token=0e474bc7-6bc5-4938-ae65-a09b8b4d7710" alt=""><figcaption><p>Edit Components Select Menu Magic Embed</p></figcaption></figure>

After clicking the option, you will get some different options depending on your already existing components.

### 📝 Add Component

&#x20;You can add a new component by clicking the option `📝Add Component`

<figure><img src="https://1774748854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmtm6qMMlpBMQxEyJRV1d%2Fuploads%2FYfu5TW9C0VPUtYCoZvB0%2Fimage.png?alt=media&#x26;token=10decc6c-4fae-4f15-980b-f4216144322f" alt=""><figcaption><p>Add Component Select</p></figcaption></figure>

After clicking the option, a form will open where you can fill in the context of your button:

* Name of the button *(Required)*
* Emoji of the button

<figure><img src="https://1774748854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmtm6qMMlpBMQxEyJRV1d%2Fuploads%2FzUFdwvpgcbJPmrzaUcrb%2Fimage.png?alt=media&#x26;token=1cf169cd-b2ad-4c6d-93cb-4c0659e64db6" alt=""><figcaption><p>Add Component Form</p></figcaption></figure>

When you submit the information, you should now see all the possible modifications, each of which is explained in[#components-options](#components-options "mention")

### ✏️ Edit Component

If you have already created a component, you can now edit it by clicking on the option with the values of the button you want to edit. After clicking you should now see all the possible modifications, each of which is explained in[#components-options](#components-options "mention")

<figure><img src="https://1774748854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmtm6qMMlpBMQxEyJRV1d%2Fuploads%2FmroBtd41A7vvOrQjOTfG%2Fimage.png?alt=media&#x26;token=e0eac8fd-006b-4bda-9c34-5558d3be04dd" alt=""><figcaption><p>Edit Component Select</p></figcaption></figure>

## Components Options

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>✏️ <strong>Edit Component</strong></td><td>Edit the label of the button</td><td></td><td><a href="components/edit-component">edit-component</a></td></tr><tr><td>🎨 <strong>Edit Style</strong></td><td>Style the button</td><td></td><td><a href="components/edit-style">edit-style</a></td></tr><tr><td>🔗 <strong>Add Link</strong></td><td>Redirect members to a website</td><td></td><td><a href="components/add-link">add-link</a></td></tr><tr><td>✨ <strong>Give/Take Points</strong></td><td>Give/take points from a member</td><td></td><td><a href="components/give-take-points">give-take-points</a></td></tr><tr><td>✨ <strong>Give/Take Role</strong></td><td>Give/take points from a member</td><td></td><td><a href="components/give-take-role">give-take-role</a></td></tr><tr><td><strong>✨ Role Restrictions</strong></td><td> Restrict button interaction based on roles</td><td></td><td><a href="components/role-restrictions">role-restrictions</a></td></tr><tr><td>⌛ <strong>Time Restrictions</strong></td><td>Restrict button interaction based on time</td><td></td><td><a href="components/time-restricions">time-restricions</a></td></tr><tr><td><strong>👩‍💻 Password Restrictions</strong></td><td> Add a required code to the button</td><td></td><td><a href="components/password-restrictions">password-restrictions</a></td></tr><tr><td>🗨️ <strong>Attach Message</strong></td><td>Add a message to the button</td><td></td><td><a href="components/attach-message">attach-message</a></td></tr><tr><td>🗨️ <strong>Attach Embed</strong></td><td>Add an embed to the button</td><td></td><td><a href="components/attach-embed">attach-embed</a></td></tr><tr><td>♻️ <strong>Reset Functionality</strong></td><td>Reset/remove a functionality of the button</td><td></td><td><a href="components/reset-functionality">reset-functionality</a></td></tr><tr><td>🗑️ <strong>Remove Component</strong></td><td>Remove the button</td><td></td><td><a href="components/remove-component">remove-component</a></td></tr></tbody></table>


---

# 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.badbears.io/magic-embed-builder/magic-embed/components.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.
