BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/blok/pinned-site

Pinned site section

blok/pinned-site
FreeBlock

Pinned sites shown within SitecoreAI.

Install it

npx shadcn@latest add https://blok.sitecore.com/r/pinned-site.json

Source

src/components/bloks/pinned-sites-section.tsxblok.sitecore.com/r/pinned-site.json
1"use client";
2
3import { SiteCard } from "@/components/bloks/site-card";
4import { Button } from "@/components/ui/button";
5import EmptyPin from "@/lib/empty-pin.svg";
6import type { ComponentProps } from "react";
7
8const getSvgUrl = (svg: unknown): string => {
9 if (typeof svg === "string") {
10 return svg;
11 }
12 if (svg && typeof svg === "object") {
13 const svgObj = svg as Record<string, unknown>;
14 return (svgObj.src as string) || (svgObj.default as string) || String(svg);
15 }
16 return String(svg || "");
17};
18
19interface SiteData {
20 id: string;
21 name: string;
22 displayName: string;
23 collectionName?: string;
24 thumbnail: {
25 url: string;
26 };
27 permissions: {
28 canRename?: boolean;
29 canCreate?: boolean;
30 };
31 hosts: Array<{
32 targetHostname?: string;
33 }>;
34 collectionId: string;
35}
36
37interface FooterButton {
38 icon: React.ReactNode;
39 label: string;
40 onClick: () => void;
41}
42
43interface DropdownAction {
44 icon: React.ReactNode;
45 label: string;
46 onClick: () => void;
47 show?: boolean;
48}
49
50interface PinnedSitesProps<T extends SiteData> {
51 allSites?: T[];
52 pinnedSiteIds?: string[];
53 onUnpin?: (siteId: string) => void;
54 getFooterButtons: (site: T) => FooterButton[];
55 getDropdownActions?: (site: T) => DropdownAction[];
56}
57
58export function PinnedSitesSection<T extends SiteData>({
59 allSites = [],
60 pinnedSiteIds = [],
61 onUnpin,
62 getFooterButtons,
63 getDropdownActions,
64 ...props
65}: PinnedSitesProps<T> & ComponentProps<"div">) {
66 const pinnedSiteIdsSet = new Set(pinnedSiteIds);
67 const pinnedSites = allSites.filter((site) => pinnedSiteIdsSet.has(site.id));
68
69 return (
70 <div className="w-full space-y-6" {...props}>
71 {/* Pinned Sites Section */}
72 <section className="w-full bg-subtle-bg rounded-lg p-6">
73 {/* Header */}
74 <div className="mb-4">
75 <h2 className="text-lg font-semibold">Pinned Sites</h2>
76 </div>
77
78 {/* Horizontal scrollable container */}
79 {pinnedSites.length > 0 ? (
80 <div className="overflow-x-auto -mx-6 px-6">
81 <div className="flex gap-4 pb-4">
82 {pinnedSites.map((site) => (
83 <div key={site.id}>
84 <SiteCard
85 site={site}
86 onUnpin={onUnpin}
87 showDropdownMenu={!!getDropdownActions}
88 footerButtons={getFooterButtons(site)}
89 dropdownActions={getDropdownActions?.(site) || []}
90 />
91 </div>
92// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • https://blok.sitecore.com/r/theme.json
  • https://blok.sitecore.com/r/button.json
  • https://blok.sitecore.com/r/all-site.json
  • https://blok.sitecore.com/r/site-card.json

Files it writes

  • src/components/bloks/pinned-sites-section.tsx
  • src/lib/empty-pin.svg

Facts

Registry
blok
Type
registry:block
Access
Free
Files written
2
Licence
NOASSERTION
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

blok.sitecore.com Sitecore/blok on GitHub Raw registry item This item as JSON

More from blok

All 72 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
All site sectionall-siteblokBlocksFree1 dep
CollaborationcollaborationblokBlocksFree1 dep
Dashboard widgetdashboard-widgetblokBlocksFree1 dep
Sidebar RHSsidebar-rhsblokBlocksFree2 deps
Site cardsite-cardblokBlocksFree1 dep
TopbartopbarblokBlocksFree1 dep · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex