BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aurora/aurora-ai-context

Aurora AI Context

aurora-dinglebear-ai/aurora-ai-context
UnverifiedBlock

Aurora-native context parity surface from AI Elements.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-ai-context.json

Source

registry/aurora/blocks/ai/elements/context.tsxraw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-ai-context.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import { Layers2, X, CircleAlert } from "lucide-react"
5import { Button } from "@/registry/aurora/ui/button"
6
7export interface ContextSegment {
8 /** Display label, e.g. "System" */
9 label: string
10 /** Token count for this segment */
11 value: number
12 /** Optional explicit swatch color (defaults to the Aurora segment palette by index) */
13 color?: string
14}
15
16export interface ContextPanelProps extends React.HTMLAttributes<HTMLDivElement> {
17 /** Heading label (default "Context") */
18 label?: string
19 /** Total context window size in tokens */
20 limit?: number
21 /** Pre-summed used tokens. Ignored when `segments` is provided (sum is used instead). */
22 used?: number
23 /** Per-bucket breakdown that drives the segmented bar + legend */
24 segments?: ContextSegment[]
25 /** Tokens reserved for output — drawn as a hatched slice and surfaced in the legend/warning */
26 reserved?: number
27 /** Render the streaming shimmer on the leading segment */
28 streaming?: boolean
29 /** When provided, shows the "Compact" affordance in the header */
30 onCompact?: () => void
31 /** "default" (full panel) or "compact" (single inline row) */
32 variant?: "default" | "compact"
33 /** Token usage ratio (0–1) that flips the panel into its near-limit warning state. Default 0.9 */
34 warnThreshold?: number
35}
36
37function panelStyle(style?: React.CSSProperties): React.CSSProperties {
38 return {
39 background: "var(--aurora-surface-raised)",
40 border: "1px solid var(--aurora-border-strong)",
41 borderRadius: "var(--aurora-radius-1)",
42 boxShadow: "var(--aurora-shadow-medium), var(--aurora-highlight-medium)",
43 ...style,
44 }
45}
46
47function formatTokenCount(value: number) {
48 if (value >= 1000) return `${(value / 1000).toFixed(value >= 10000 ? 0 : 1)}k`
49 return `${value}`
50}
51
52/** Aurora segment palette: cyan → teal → sand(axon-orange) → neutral, cycling. Violet dropped. */
53const SEGMENT_COLORS = [
54 "var(--aurora-accent-primary)",
55 "var(--aurora-success)",
56 "var(--axon-orange)",
57 "var(--aurora-neutral)",
58]
59
60const HATCH_FILL =
61 "repeating-linear-gradient(45deg, color-mix(in srgb, var(--aurora-text-muted) 22%, transparent) 0 4px, transparent 4px 8px)"
62
63const ContextPanel = (
64 { ref,
65 label = "Context",
66 limit = 128000,
67 used,
68 segments,
69 reserved = 0,
70 streaming = false,
71 onCompact,
72 variant = "default",
73 warnThreshold = 0.9,
74 className,
75 style,
76 ...props
77// … truncated

What it pulls in

npm packages

  • lucide-react@^0.487.0

Other registry items

  • @aurora/aurora-tokens
  • @aurora/aurora-ai-elements
  • @aurora/aurora-components

Files it writes

  • registry/aurora/blocks/ai/elements/context.tsx

Facts

Registry
aurora
Type
registry:block
Access
Unverified
Files written
1
Licence
AGPL-3.0
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

aurora.dinglebear.ai dinglebear-ai/aurora on GitHub Raw registry item This item as JSON

More from aurora

All 176 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora AI Actionaurora-ai-actionauroraBlocksUnverified1 dep
Aurora AI Actionsaurora-ai-actionsauroraBlocksUnverified1 dep
Aurora AI Agentaurora-ai-agentauroraBlocksUnverified1 dep
Aurora AI Image Gridaurora-ai-ai-image-gridauroraBlocksUnverified1 dep
Aurora AI Attachmentsaurora-ai-attachmentsauroraBlocksUnverified1 dep
Aurora AI Audio Playeraurora-ai-audio-playerauroraBlocksUnverified1 dep
Aurora AI Branchaurora-ai-branchauroraBlocksUnverified1 dep
Aurora AI Canvasaurora-ai-canvasauroraBlocksUnverified1 dep

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