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

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