data-tb-hide-not-found.
For what the label states in each case, every option with its values, and the other ways to show a project’s record (the label as an image, the API, a plain link), see Show your record on your site.
Setup
1
Add the script
Import the script to your website entry HTML file as follows:
2
Add the div
- Static Context
- Dynamic Context
If you already know the project you want to display the label for and are not in a dynamic context, then you should use
Then add the div to your website:Parameters
data-tb-project-slug.Head to app.trustblock.run, find the project you want to get the label for, and copy the slug in the URL.
Then add the div to your website:data-tb-project-widgetis a required parameter that allows the widget to be initialized.data-tb-project-slugis a required parameter that specifies the slug of the project you want to display the label for.data-tb-coloris an optional parameter that specifies the color of the widget, can belight,darkorauto(follows the page behind the label).data-tb-modeis an optional parameter that specifies the sizing behavior of the widget, can befitorfill.data-tb-hide-not-foundis an optional flag that hides the widget when Trustblock holds no audit for the project.data-tb-variantis an optional parameter:badge(the default: the label, with the options below) orlabel(the small form: “Audits on Trustblock” with the latest audit’s firm and date; it takes no other option).data-tb-showis an optional parameter: the facts the label states. Left out (orauto), the label shows the project’s three strongest facts (Automatic). Else a comma list ofdate,firm,reports,fixed,since,firms,chains,site,audits, ornonefor the first line alone.data-tb-fixedis an optional parameter: findings fixed ascount(default, “214 of 231 findings fixed”) orpercent(“93% of findings fixed”).data-tb-linkis an optional parameter:record(default, the project’s page) or the id of one of the project’s audits (that audit’s page).data-tb-layoutis an optional parameter:standard(default, two lines),compact(one line) orcard(up to 5 facts, one a line).data-tb-accentis an optional parameter:purple(default),blue,slateorink.data-tb-sizeis an optional parameter:medium(default),smallorlarge.data-tb-shapeis an optional parameter:rounded(default),pillorsquare.data-tb-dateis an optional parameter: the date format,month(default, Aug 2026),long(20 Aug 2026),iso(2026-08-20) orslash(2026/08/20).data-tb-langis an optional parameter:en(default),fr,es,deorpt.