This component no longer exists. It was in deso-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-06 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
User Public Key
deso-ui/user-public-keyRemovedBlock
A component for displaying a user's public key.
Install it
npx shadcn@latest add https://ui.deso.com/r/user-public-key.jsonSource
1'use client';23import React from 'react';4import { cn, truncateMiddle } from '@/lib/utils/deso';5import { CopyButton } from './copy-button';67export interface UserPublicKeyProps {8 publicKey: string;9 className?: string;10 truncate?: boolean;11 startChars?: number;12 endChars?: number;13 showCopyButton?: boolean;14}1516export function UserPublicKey({17 publicKey,18 className,19 truncate = false,20 startChars = 6,21 endChars = 6,22 showCopyButton = true,23}: UserPublicKeyProps) {24 const displayKey = truncate25 ? truncateMiddle(publicKey, startChars, endChars)26 : publicKey;2728 return (29 <div className={cn('flex items-center gap-1 font-mono text-sm', className)}>30 <span>{displayKey}</span>31 {showCopyButton && <CopyButton textToCopy={publicKey} size="sm" />}32 </div>33 );34}
What it pulls in
Other registry items
