GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — embedded-wallet/src/components/AccountMetaChip.tsx at develop · 1Shot-API/embedded-wallet

Expand file tree

/

AccountMetaChip.tsx

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (43 loc) · 1.19 KB
/

AccountMetaChip.tsx

Copy path

File metadata and controls

46 lines (43 loc) · 1.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import type { ReactNode } from "react";
import { cn } from "@/lib/utils";
export interface IAccountMetaChipProps {
icon: ReactNode;
value: string;
title?: string;
ariaLabel: string;
disabled?: boolean;
onClick: () => void;
}
/**
* Compact bordered account-row control: icon + single truncated value.
*/
export function AccountMetaChip({
icon,
value,
title,
ariaLabel,
disabled = false,
onClick,
}: IAccountMetaChipProps) {
return (
<button
type="button"
aria-label={ariaLabel}
title={title ?? value}
disabled={disabled}
onClick={onClick}
className={cn(
"border-border bg-background hover:bg-muted/40 flex min-w-0 items-center gap-2 rounded-lg border px-2.5 py-2 text-left transition-colors",
"focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none",
"disabled:pointer-events-none disabled:opacity-50",
)}
>
<span className="flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-full">
{icon}
</span>
<span className="text-foreground min-w-0 flex-1 truncate text-sm font-semibold tracking-tight">
{value}
</span>
</button>
);
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.