Card is a presentation container, not a button. Project a heading with neu-card-header, unmarked content into the body, and actions with neu-card-footer. padding affects the body only. flat removes the shadow; bordered adds an accent border. hoverable changes visual elevation but does not add a click event or keyboard interaction.
The application supplies the Inputs and owns any surrounding interaction. This component has no model bindings or Outputs. Content projection and icon templates are documented separately where supported.
Use a real heading in the projected content when the card introduces a section. Put actions in buttons or links; do not rely on the hover effect as an interaction. The card itself is not a tab stop. The examples use native button semantics for confirmation and saving.
Key
Action
โ
No component-level keyboard interaction; projected buttons and links keep their own keyboard behavior.
All public Inputs are extracted from the pinned Core package. Named types link to their definitions. Only the actual public projection areas and templates are listed below.
Inputs
Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.
Name
Type
Default
Template binding
Description
bordered
boolean
false
[bordered]
Uses the primary accent color for the border.
flat
boolean
false
[flat]
Removes the shadow; retains the structural border.
hoverable
boolean
false
[hoverable]
Adds visual elevation on hover; no interaction is added.
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
Body spacing follows padding; header and footer keep their own spacing. Core surface, border, radius and shadow tokens define the card. Keep projected content responsive and do not use hoverable as a substitute for a visible action.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-border
Normal control and cell borders
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.08)
--neu-border-hover
Control borders on hover
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.16)
--neu-primary
Brand color for active controls and emphasis
Shared by other Core consumers; scope the override.
#007aff
--neu-surface
Main field, header or control surface
Shared by other Core consumers; scope the override.
#ffffff
--neu-surface-2
Secondary surfaces and alternating rows
Shared by other Core consumers; scope the override.
#f1f5f9
--neu-text
Main text and inherited icon color
Shared by other Core consumers; scope the override.
#0f172a
--neu-radius-lg
Corner radius
Shared by other Core consumers; scope the override.
12px
--neu-shadow-lg
Surface or overlay elevation
Shared by other Core consumers; scope the override.