> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trustblock.run/llms.txt
> Use this file to discover all available pages before exploring further.

# Security firm widget

> A card for a security firm, with the metrics Trustblock computes from its published audits.

As a security firm, you can show your Trustblock profile metrics on your own site with the security firm widget. It is added with a script and a `div`, and reads the metrics computed from the audits published on your profile.

## Setup

**1. Add the script**

Import the script to your website entry HTML file as follows:

```html theme={null}
<head>
  ...
  <script src="https://widget.trustblock.run/auditor-widget.min.js" defer />
</head>
```

**2. Add the div**

Add the widget div anywhere you want on your website:

```html theme={null}
<body>
  ...
  <div
      data-tb-auditor-widget
      data-tb-auditor-slug="your-auditor-slug"
      data-tb-text-color="#000000"
      data-tb-bg-color="#FFFFFF"
      data-tb-accent-color="#444444"
  />
</body>
```

**Parameters**

* `data-tb-auditor-widget` is a required parameter that allows the widget to be initialized.
* `data-tb-auditor-slug` is a required parameter that specifies the slug of the security firm you want to display the metrics for.
* `data-tb-text-color` is an optional parameter that specifies the color of the text in the widget and accepts a hex color code.
* `data-tb-bg-color` is an optional parameter that specifies the background color of the widget and accepts a hex color code.
* `data-tb-accent-color` is an optional parameter that specifies the accent color of the widget and accepts a hex color code.

#### [Give it a try on our playground](https://app.trustblock.run/playground?tab=widget\&from=docs)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.