honestui

Secret Row

Dashboards

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>
  )
}

Dependencies

More by honestui

View all
  • Chromatic Text Reveal

    Chromatic Text Reveal

    31
  • Warp

    Warp

    1
  • Morphing Dialog

    Morphing Dialog

    1
  • Scroll Velocity Text

    Scroll Velocity Text

    1
  • Spotlight

    Spotlight

    1
  • Success Check

    Success Check

    1
  • Typewriter

    Typewriter

    1
  • Schedule Builder

    Schedule Builder

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    774
  • Analytics Dashboard

    Analytics Dashboard

    89
  • Creator Dashboard

    Creator Dashboard

    222
  • Insights Dashboard

    Insights Dashboard

    47
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    500
  • serf dashboard

    serf dashboard

    146
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    74