Api Key List

React settings panel listing API keys with masked previews, created date badges and a rotate button per key, plus a header action to create a new key.

src/registry/ui/api-key-list.tsx/r/api-key-list.json

Installation#

bash
npx shadcn@latest add @minidev/api-key-list

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/api-key-list.json

Usage#

tsx
import { ApiKeyList } from "@/components/ui/api-key-list"

export function Example() {
  return (
    <ApiKeyList keys={[{ id: "1", name: "Production", preview: "md_live_••••1234" }]} />
  )
}

API reference#

ApiKeyList props
PropTypeDefault
keysKey[]-
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All Developer tool UI components for React

Learn more