BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-glass-ui/repository-metadata-glass

Repository Metadata Glass

shadcn-glass-ui/repository-metadata-glass
FreeBlock

Repository Metadata Glass component with glass effects

Install it

npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/repository-metadata-glass.json

Source

components/glass/composite/repository-metadata-glass.tsxraw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/repository-metadata-glass.json
1// ========================================
2// REPOSITORY METADATA GLASS - COMPOSITE COMPONENT
3// Repository languages, commits, and contribution info
4// Level 3: Composite (extracted from RepositoryCardGlass)
5// ========================================
6
7import { forwardRef, type HTMLAttributes, type CSSProperties } from 'react';
8import { cn } from '@/lib/utils';
9import '@/glass-theme.css';
10
11export interface RepositoryMetadataGlassProps extends HTMLAttributes<HTMLDivElement> {
12 /** Programming languages used */
13 readonly languages: string;
14 /** Number of commits */
15 readonly commits: number;
16 /** Contribution percentage */
17 readonly contribution: number;
18 /** Stacked layout for mobile */
19 readonly stacked?: boolean;
20}
21
22export const RepositoryMetadataGlass = forwardRef<
23 HTMLDivElement,
24 RepositoryMetadataGlassProps
25>(
26 (
27 {
28 languages,
29 commits,
30 contribution,
31 stacked = false,
32 className,
33 ...props
34 },
35 ref
36 ) => {
37 const mutedStyles: CSSProperties = {
38 color: 'var(--text-muted)',
39 };
40
41 const secondaryStyles: CSSProperties = {
42 color: 'var(--text-secondary)',
43 };
44
45 return (
46 <div
47 ref={ref}
48 className={cn(stacked ? 'space-y-0.5' : 'space-y-1', className)}
49 {...props}
50 >
51 <div className="text-xs" style={mutedStyles}>
52 {languages}
53 </div>
54 <div className="text-xs" style={secondaryStyles}>
55 {commits.toLocaleString()} commits · {contribution}%
56 </div>
57 </div>
58 );
59 }
60);
61
62RepositoryMetadataGlass.displayName = 'RepositoryMetadataGlass';

Facts

Registry
shadcn-glass-ui
Type
registry:block
Access
Free
Files written
0
Licence
Apache-2.0
First indexed
2026-08-02
Last confirmed
today

Go to the source

yhooi2.github.io artyhoo/shadcn-glass-ui-library on GitHub Raw registry item This item as JSON

More from shadcn-glass-ui

All 76 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Ai Card Glassai-card-glassshadcn-glass-uiBlocksFreeno deps
Career Stats Glasscareer-stats-glassshadcn-glass-uiBlocksFreeno deps
Career Stats Header Glasscareer-stats-header-glassshadcn-glass-uiBlocksFreeno deps
Circular Metric Glasscircular-metric-glassshadcn-glass-uiBlocksFreeno deps
Contribution Metrics Glasscontribution-metrics-glassshadcn-glass-uiBlocksFreeno deps
Flags Section Glassflags-section-glassshadcn-glass-uiBlocksFreeno deps
Header Branding Glassheader-branding-glassshadcn-glass-uiBlocksFreeno deps
Header Nav Glassheader-nav-glassshadcn-glass-uiBlocksFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex