Shadcn Registry 5
ogimagecn/shadcn-registry-5FreeComponent
A clean light Open Graph image with centered logo, name, title, and description inside a bordered frame.
Live preview
live · rendered by the registry
Rendered by ogimagecn on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ogimagecn.com/r/shadcn-registry-5.jsonSource
1export interface ShadcnRegistry5Props {2 name: string;3 title: string;4 description?: string;5 logo?: string;6}78export const ShadcnRegistry5 = ({9 name,10 title,11 description = "",12 logo = "",13}: ShadcnRegistry5Props) => (14 <div15 style={{16 backgroundColor: "#fafafa",17 color: "#0a0a0a",18 display: "flex",19 height: "100%",20 position: "relative",21 width: "100%",22 }}23 >24 {/* Grid lines — matching grid/index.tsx */}25 <div26 style={{27 borderLeft: "1px dashed #44403c",28 bottom: 0,29 left: "64px",30 position: "absolute",31 top: 0,32 width: "1px",33 }}34 />35 <div36 style={{37 borderLeft: "1px dashed #44403c",38 bottom: 0,39 position: "absolute",40 right: "64px",41 top: 0,42 width: "1px",43 }}44 />45 <div46 style={{47 borderTop: "1px dashed #44403c",48 height: "1px",49 left: 0,50 position: "absolute",51 right: 0,52 top: "64px",53 }}54 />55 <div56 style={{57 borderTop: "1px dashed #44403c",58 bottom: "64px",59 height: "1px",60 left: 0,61 position: "absolute",62 right: 0,63 }}64 />6566 {/* Main content — absolutely positioned in center */}67 <div68 style={{69 alignItems: "center",70 bottom: "128px",71 display: "flex",72 flexDirection: "column",73 justifyContent: "center",74 left: "128px",75 position: "absolute",76 right: "128px",77 textAlign: "center",78 top: "128px",79 width: "896px",80 }}81 >82 {/* Logo + Name */}83 <div84 style={{85 alignItems: "center",86 display: "flex",87 gap: "12px",88 marginBottom: "32px",89 }}90 >91 {logo ? (92 <img93 height={40}94 src={logo}95 width={40}96 style={{ objectFit: "contain" }}97 />98 ) : (99 <div100 style={{101 backgroundColor: "rgba(0,0,0,0.3)",102 borderRadius: "12px",103 height: "40px",104 width: "40px",105 }}106 />107 )}108 <div style={{ color: "#18181b", fontSize: "28px", fontWeight: 600 }}>109 {name}110 </div>111 </div>112113 {/* Title */}114 <div115 style={{116 display: "flex",117 fontSize: title.length > 30 ? 72 : 88,118 fontWeight: 800,119// … truncated
Files it writes
More from ogimagecn
All 22 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Blogblog | ogimagecn | Components | Free | no deps | |
| Changelogchangelog | ogimagecn | Components | Free | no deps | |
| Editorialeditorial | ogimagecn | Components | Free | no deps | |
| Eventevent | ogimagecn | Components | Free | no deps | |
| Gridgrid | ogimagecn | Components | Free | no deps | |
| Logologo | ogimagecn | Components | Free | no deps | |
| Ownerowner | ogimagecn | Components | Free | no deps | |
| Photophoto | ogimagecn | Components | Free | no deps |
