BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/openstatus/status-layout

Status Layout

openstatus/status-layout
FreeBlock

Layout primitives for composing status displays (Status, StatusHeader, StatusTitle, etc.)

Install it

npx shadcn@latest add https://openstatus.dev/r/status-layout.json

Source

src/components/blocks/status-layout.tsxopenstatus.dev/r/status-layout.json · first 6 KB
1import { StatusIcon as UnifiedStatusIcon } from "@/components/blocks/status-icon";
2import { cn } from "@/lib/utils";
3
4/**
5 * Status - Root container component for status page layouts
6 *
7 * This component serves as the primary container for status page content, providing
8 * consistent spacing and establishing the status type context via data attributes.
9 * The status type controls the visual appearance of child StatusIcon components
10 * through CSS data attribute selectors (group-data-[variant=...]).
11 *
12 * The component acts as both a CSS group and peer for advanced selector patterns,
13 * enabling child components to style themselves based on the parent's status.
14 *
15 * @param variant - The status type that determines the overall status indicator appearance
16 *
17 * @example
18 * ```tsx
19 * <Status variant="success">
20 * <StatusHeader>
21 * <StatusBrand src="/logo.png" alt="Company" />
22 * <StatusTitle>System Status</StatusTitle>
23 * </StatusHeader>
24 * <StatusContent>
25 * {// Status components here}
26 * </StatusContent>
27 * </Status>
28 * ```
29 *
30 * @see StatusHeader - For header content with brand and title
31 * @see StatusContent - For main status content area
32 * @see StatusIcon - For status indicator icons that respond to variant
33 */
34export function Status({
35 children,
36 className,
37 variant = "success",
38 ...props
39}: React.ComponentProps<"div"> & {
40 variant?: "success" | "degraded" | "error" | "info";
41}) {
42 return (
43 <div
44 data-variant={variant}
45 data-slot="status"
46 className={cn("group peer flex flex-col gap-8", className)}
47 {...props}
48 >
49 {children}
50 </div>
51 );
52}
53Status.displayName = "Status";
54
55/**
56 * StatusBrand - Brand logo/image component for status page headers
57 *
58 * Displays a brand image (typically a company logo) with consistent sizing.
59 * The default size is 32x32px (size-8), suitable for header placement.
60 *
61 * @param src - Image source URL
62 * @param alt - Alternative text for the image (required for accessibility)
63 *
64 * @example
65 * ```tsx
66 * <StatusHeader>
67 * <StatusBrand src="/logo.png" alt="Company Name" />
68 * <StatusTitle>System Status</StatusTitle>
69 * </StatusHeader>
70 * ```
71 *
72 * @see StatusHeader - For positioning brand within header layout
73 */
74export function StatusBrand({
75 src,
76 alt,
77 className,
78 ...props
79}: React.ComponentProps<"img">) {
80 return (
81 <img src={src} alt={alt} className={cn("size-8", className)} {...props} />
82 );
83}
84StatusBrand.displayName = "StatusBrand";
85
86/**
87// … truncated

What it pulls in

Other registry items

  • https://openstatus.dev/r/status-icon.json

Files it writes

  • src/components/blocks/status-layout.tsx

Facts

Registry
openstatus
Type
registry:block
Access
Free
Files written
1
Licence
AGPL-3.0
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

openstatus.dev openstatusHQ/openstatus on GitHub Raw registry item This item as JSON

More from openstatus

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Status Bannerstatus-banneropenstatusBlocksFreeno deps
Status Barstatus-baropenstatusBlocksFree1 dep
Status Blank Statesstatus-blankopenstatusBlocksFreeno deps
Status Calendarstatus-calendaropenstatusBlocksFree3 deps
Status Page Chromestatus-chromeopenstatusBlocksFreeno deps
Status Page (Complete)status-completeopenstatusBlocksFreeno deps
Status Componentstatus-componentopenstatusBlocksFree2 deps
Status Component Groupstatus-component-groupopenstatusBlocksFreeno 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