About
Show an API key or secret masked, and let people reveal, copy, rotate, or revoke it.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Secret Row to your project and fits it to your theme.
Code
How Secret Row is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import "honestui/theme.css";
import {
SecretList,
SecretRow,
type SecretRowSecret,
} from "@/components/ui/honest-secret-row"
const now = Date.parse("2026-11-26T15:00:00Z")
const day = 24 * 60 * 60 * 1000
const sampleKeys: SecretRowSecret[] = [
{
id: "key_warehouse",
name: "Warehouse sync",
prefix: "hk_live_",
last4: "7c21",
createdAt: now - 60 * day,
lastUsedAt: now - day,
},
]
function wait(milliseconds: number) {
return new Promise((resolve) => window.setTimeout(resolve, milliseconds))
}
/** There is no server behind this preview. Every request is rejected on purpose. */
async function refuse(): Promise<never> {
await wait(700)
throw new Error("This preview rejects every request.")
}
export default function SecretRowFailures() {
return (
<div data-theme="light">
<SecretList aria-label="Warehouse keys" className="max-w-2xl">
{sampleKeys.map((key) => (
<SecretRow
key={key.id}
secret={key}
now={now}
onReveal={refuse}
onRotate={refuse}
onRevoke={refuse}
/>
))}
</SecretList>
</div>
)
}
















