BlockViewerContext Type — ui Architecture
Architecture documentation for the BlockViewerContext type/interface in block-viewer.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 93a7f083_dd5f_bb3b_a314_50d6d4c50436["BlockViewerContext"] 1286b7b7_c8bd_53b6_a231_a71e5b6ebd50["block-viewer.tsx"] 93a7f083_dd5f_bb3b_a314_50d6d4c50436 -->|defined in| 1286b7b7_c8bd_53b6_a231_a71e5b6ebd50 style 93a7f083_dd5f_bb3b_a314_50d6d4c50436 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/components/block-viewer.tsx lines 56–71
type BlockViewerContext = {
item: z.infer<typeof registryItemSchema>
view: "code" | "preview"
setView: (view: "code" | "preview") => void
style?: Style["name"]
setStyle: (style: Style["name"]) => void
activeFile: string | null
setActiveFile: (file: string) => void
resizablePanelRef: React.RefObject<ImperativePanelHandle> | null
tree: ReturnType<typeof createFileTreeForRegistryItemFiles> | null
highlightedFiles:
| (z.infer<typeof registryItemFileSchema> & {
highlightedContent: string
})[]
| null
}
Defined In
Source
Frequently Asked Questions
What is the BlockViewerContext type?
BlockViewerContext is a type/interface in the ui codebase, defined in deprecated/www/components/block-viewer.tsx.
Where is BlockViewerContext defined?
BlockViewerContext is defined in deprecated/www/components/block-viewer.tsx at line 56.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free