> For the complete documentation index, see [llms.txt](https://docs.pulse.domains/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pulse.domains/guides/registration-widget.md).

# Registration Widget

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

## How to Add the PNS Registration Widget to Your Site

There are two main ways to incorporate the PNS registration widget:

### **1. Using NPM Package**

For developers using React in their dApp, you can install the [`@pnsdomain/widgets`](https://www.npmjs.com/package/@pnsdomains/widgets) package. This package provides a small, customizable React component for interacting with the PulseChain Name Service.

### **2. Embedding via HTML**

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

For a simpler integration, especially if you're not using React, you can embed the widget directly into your website with an HTML `iframe` tag:

{% code overflow="wrap" %}

```
<iframe src="https://widget.pulse.domains?mode=dark&shadow=yes&referrer=helloworld.pls" width="400" height="600" style="border:none;"></iframe>
```

{% endcode %}

* **Attributes:**
  * `mode`: Choose 'light' or 'dark' theme, with 'light' as the default.
  * `shadow`: Set to 'yes' to add a shadow effect, or 'no' to remove it. Default is 'yes'.
  * `referrer`: Set this to a .pls domain of your choice. The default is null. ([More on Referrals](/guides/referrals.md))

By following these instructions, you can quickly add the PNS domain registration widget to your website, allowing users to register .pls domain names directly from your platform.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.pulse.domains/guides/registration-widget.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.
