Common Core

Document cards

Document cards represent files attached to policies, claims, accounts, or contacts. They communicate file type at a glance, support quick download and preview actions, and accommodate version history when a document has been revised.

Stable

Document card component

Each card shows a file-type icon (color-coded by format), the document name (truncated at one line), metadata (size, upload date, uploader), and action buttons.

PDF
GL Policy 2024-00441 — Liberty Mutual.pdf
2.4 MB · Uploaded Jul 24 by A. Chen
XLS
Loss Run 2022–2024 — Full History.xlsx
512 KB · Uploaded Jul 20 by J. Park
DOC
Coverage Analysis Memo Q3 2024.docx
184 KB · Uploaded Jul 18 by M. Rodriguez
FILE
Signed Application — 2025 Renewal.eml
68 KB · Uploaded Jul 15 by System
File typeClass modifierBackgroundText color
PDF.ws-doc-icon--pdf#fff0f0#dc2626 (Red)
Excel / CSV.ws-doc-icon--xlsxgreen-50green-700
Word / Text.ws-doc-icon--docx#eff6ff#1d4ed8 (Blue)
Other.ws-doc-icon--gengray-100gray-600

Upload document card

The upload card is a drop zone that appears within a document list, allowing users to add new files inline without navigating away. Accepts drag-and-drop or click to browse.

📎
Drop files here or click to browse
PDF, DOCX, XLSX, EML · Max 50 MB per file

Version history

When a document has been revised, the card expands to show a version history list. Each version shows the version number, upload date, uploader, and a download link. The latest version is marked.

PDF
GL Policy Certificate of Insurance.pdf
3 versions · Latest: Jul 24, 2025
v3 · Latest
Jul 24, 2025
Uploaded by A. Chen · 2.4 MB
v2
Jan 12, 2025
Uploaded by J. Park · 2.1 MB
v1
Dec 30, 2024
Uploaded by M. Rodriguez · 1.9 MB

Document page templates

Document lists appear in two layouts — a card grid for visual file browsing, and a compact table view for high-density lists. Users can toggle between views. Filtering by type, date, and uploader is surfaced in a filter bar above the list.

PDF
GL Policy Certificate.pdf
2.4 MB · Jul 24
XLS
Loss Run 2022–2024.xlsx
512 KB · Jul 20
DOC
Coverage Analysis Memo.docx
184 KB · Jul 18

Usage guidance

Do
  • Always show file type, name, size, and upload date on every card.
  • Truncate long file names at one line with text-overflow: ellipsis.
  • Provide a version history view for documents that can be revised.
  • Use the upload drop zone inline within document lists.
Don't
  • Don't rename files on upload without confirming with the user.
  • Don't show a download progress indicator inside the card — use a toast.
  • Don't hide the file extension — it helps users identify documents quickly.
  • Don't mix grid and table document cards in the same list view.