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 * as React from "react"
import { SecretRow } from "@/components/ui/honest-secret-row"
const now = Date.parse("2026-11-26T15:00:00Z")
const day = 24 * 60 * 60 * 1000
/** A made-up publishable key, which is meant to be public, so the page can hold its value. */
export default function SecretRowSingle() {
const [copies, setCopies] = React.useState(0)
return (
<div data-theme="light" className="flex w-full max-w-2xl min-w-0 flex-col gap-[var(--hui-space-3)]">
<SecretRow
secret={{
id: "pk_web",
name: "Publishable key",
prefix: "pk_live_",
value: "pk_live_7Hn2VbQx9LrTz4MwKc8d61e0",
createdAt: now - 90 * day,
lastUsedAt: now - day,
}}
now={now}
onCopy={() => setCopies((count) => count + 1)}
/>
<p className="m-0 text-[var(--hui-color-foreground-base-secondary)] tabular-nums [font-size:var(--hui-font-size-small)] [line-height:var(--hui-line-height-small)]">
Copies recorded: {copies}
</p>
</div>
)
}
















