Card
A semantic content container with independently composable header, body and footer sections, native landmarks and complete visual ownership.
GET STARTED
Import
Every section is standalone. Import only the sections present in the template.
Basic composition
Project a real heading and connect the article name with ariaLabelledby when the card needs one.
WORKSPACE
Agent workspace
Build, observe and ship autonomous workflows from one focused workspace.
Optional sections
Header and footer are never required. A body-only region stays compact and semantic.
Monthly capacity
Semantic roles
The root is always an article element. Add a role only when the information architecture requires it.
No explicit role
Important landmark
Grouped content
Semantics intentionally removed
Rich projected content
Card does not invent media, title or action inputs. Images, badges, menus and application layouts remain ordinary projected composition.
Research agent
Responsive Card grids
Card owns its surface, not surrounding layout. CSS Grid or Tailwind remains the correct owner of collection geometry.
Agents
24Runs
1,284Success
98.7%Additive class ownership
cardClass, typed slots and local section classes compose without disabling the theme layer.
Unstyled and typed slots
Native structure, ARIA and structural hooks remain while every NeuralNg visual class is removed.
Consumer surface
Component boundaries
Card
Owns semantic surface and section composition.
Application
Owns headings, media, layout and content.
Interactive components
Buttons and links own activation and focus.
ACCESSIBILITY
Structure before decoration
Card preserves native document semantics and never turns a whole surface into an ambiguous control.
Native structure
The root renders article; header and footer render their corresponding native elements. Body is a neutral div so consumer content determines its outline.
Real headings
Project an h2 or the heading level required by the surrounding document. Card intentionally has no title input that could flatten the page outline.
Named landmarks
Ordinary cards need no role or name. Use role="region" only for important content and provide either ariaLabel or preferably ariaLabelledby.
Interaction belongs inside
Card has no click output, tabindex or keyboard model. Use real Neural Buttons and links inside it. Do not simulate a clickable card with a generic click handler.
Presentation role
presentation deliberately removes root semantics. Use it only when the surface is purely visual and its projected descendants retain all required meaning.
PUBLIC API
Card contract
Canonical symbols are NeuralCard, NeuralCardHeader, NeuralCardBody and NeuralCardFooter. Card intentionally emits no events.
NeuralCard inputs
| Input | Type | Default | Purpose |
|---|---|---|---|
| role | article | region | group | presentation | null | null | Optional explicit role on the native article. |
| ariaLabel | string | null | null | Direct accessible name. |
| ariaLabelledby | string | null | null | Heading ID reference for the accessible name. |
| unstyled | boolean | false | Removes NeuralNg visual classes. |
| cardClass | string | '' | Additive class on the native article. |
| classes | NeuralCardClasses | {} | Typed additive section slots. |
Section inputs
headerClassstring · ''Additive native header class.
bodyClassstring · ''Additive body wrapper class.
footerClassstring · ''Additive native footer class.
Typed class slots
rootheaderbodyfooterPublic types
NeuralCardRolearticle | region | group | presentation
NeuralCardClasses{ root?, header?, body?, footer? }
DESIGN TOKENS
Card tokens
Neutral responds to runtime surface and mode. Glass, Mist and Futuristic override the same contract without changing markup.
Root tokens
--neural-card-widthComponent inline size.
--neural-card-colorComponent foreground color.
--neural-card-backgroundComponent background surface.
--neural-card-borderComponent border shorthand.
--neural-card-radiusComponent corner radius.
--neural-card-shadowComponent box shadow.
--neural-card-backdrop-filterComponent backdrop filter effect.
--neural-card-font-familyComponent font family.
Header tokens
--neural-card-header-alignHeader cross-axis alignment.
--neural-card-header-justifyHeader main-axis alignment.
--neural-card-header-gapSpacing between header items.
--neural-card-header-paddingHeader internal spacing.
--neural-card-header-borderHeader border shorthand.
Body tokens
--neural-card-body-paddingBody internal spacing.
--neural-card-body-colorBody foreground color.