BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/blok/all-site

All site section

blok/all-site
FreeBlock

All user sites shown within SitecoreAI.

Install it

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

Source

src/components/bloks/all-sites-section.tsxblok.sitecore.com/r/all-site.json
1"use client";
2
3import { SiteCard } from "@/components/bloks/site-card";
4import type { ComponentProps } from "react";
5
6interface SiteData {
7 id: string;
8 name: string;
9 displayName: string;
10 collectionName?: string;
11 thumbnail: {
12 url: string;
13 };
14 permissions: {
15 canRename?: boolean;
16 canCreate?: boolean;
17 };
18 hosts: Array<{
19 targetHostname?: string;
20 }>;
21 collectionId: string;
22}
23
24interface FooterButton {
25 icon: React.ReactNode;
26 label: string;
27 onClick: () => void;
28}
29
30interface DropdownAction {
31 icon: React.ReactNode;
32 label: string;
33 onClick: () => void;
34 show?: boolean;
35}
36
37interface AllSitesProps<T extends SiteData> {
38 allSites?: T[];
39 pinnedSiteIds?: string[];
40 getFooterButtons: (site: T) => FooterButton[];
41 getDropdownActions?: (site: T, isPinned: boolean) => DropdownAction[];
42}
43
44export function AllSitesSection<T extends SiteData>({
45 allSites = [],
46 pinnedSiteIds = [],
47 getFooterButtons,
48 getDropdownActions,
49 ...props
50}: AllSitesProps<T> & ComponentProps<"div">) {
51 const pinnedSiteIdsSet = new Set(pinnedSiteIds);
52
53 return (
54 <div className="w-full space-y-6" {...props}>
55 {/* All Sites Section */}
56 <section className="w-full bg-subtle-bg rounded-lg p-6">
57 <div className="mb-4">
58 <h2 className="text-lg font-semibold">All Sites</h2>
59 <p className="text-sm text-muted-foreground mt-1 wrap-break-words">
60 Browse all available sites and pin your favorites for quick access
61 </p>
62 </div>
63
64 {/* Grid layout for all sites */}
65 <div className="grid grid-cols-3 xl:grid-cols-3 gap-4">
66 {allSites.map((site) => {
67 const isPinned = pinnedSiteIdsSet.has(site.id);
68
69 return (
70 <div key={site.id}>
71 <SiteCard
72 site={site}
73 showPinOverlay={false}
74 footerButtons={getFooterButtons(site)}
75 dropdownActions={getDropdownActions?.(site, isPinned) || []}
76 />
77 </div>
78 );
79 })}
80 </div>
81 </section>
82 </div>
83 );
84}

What it pulls in

npm packages

  • lucide-react

Other registry items

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

Files it writes

  • src/components/bloks/all-sites-section.tsx

Facts

Registry
blok
Type
registry:block
Access
Free
Files written
1
Licence
NOASSERTION
First indexed
2026-08-03
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
CollaborationcollaborationblokBlocksFree1 dep
Dashboard widgetdashboard-widgetblokBlocksFree1 dep
Pinned site sectionpinned-siteblokBlocksFree1 dep · 2 files
Sidebar RHSsidebar-rhsblokBlocksFree2 deps
Site cardsite-cardblokBlocksFree1 dep
TopbartopbarblokBlocksFree1 dep · 2 files
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