Canonical inventory
Data display · core
Code block
data.code-blockCode block: A structured display for reading, comparing, or inspecting information.
code blockthe structured information blockthe data display
States4
Touch targetDisplay
Evidence4
Introduced by1 kits
Visual specimen
Same contract. Every kit voice.
const system = "mavan";
const state = "ready";Translation table
What code calls it.
Web<pre><code>The closest native or standardized web primitive.direct
ARIAtable, list, or groupNo single ARIA role represents the complete component.pattern
SwiftUICustom View compositionSwiftUI has no single direct equivalent; compose and name the behavior explicitly.approximation
AppKitNSTextViewThe nearest named AppKit API.direct
Anatomy
Every part, named.
- 1Data container
- 2Primary values
- 3Labels or headers
- 4Grouping or separators
- 5Empty and error treatment
Often confused with
Similar shape. Different contract.
Card
surface.cardShares a visual family, but has a different role, state model, or interaction contract.
Feature cardsurface.feature-cardShares a visual family, but has a different role, state model, or interaction contract.
Glass cardsurface.glass-cardShares a visual family, but has a different role, state model, or interaction contract.
Prompt · paste into your agent
Ask for the exact thing.
Implement the canonical Code block component (data.code-block). Code block: A structured display for reading, comparing, or inspecting information. Support these states: default, loading, empty, error. Use semantic design tokens rather than raw visual values. Preserve a minimum appropriatepx touch target where interactive. Provide and verify: implementation, state-matrix, responsive, reduced-motion. Keep the component API stable so every Studio kit can supply its own rendering without changing the behavior contract.Studio contract
What must be proven.
Required states
default · loading · empty · error
Required evidence
implementation · state-matrix · responsive · reduced-motion
Source union
lumen