Components
Heading
Section and page titles from the type scale.
Page title
Drawer title
Big section card title
Small section card title
Section and page titles. Uses the heading steps from Typography — Medium weight. Four levels:
xl(24px): page title.lg(20px): drawer title.md(17px): big section card title, such as Holdings or Performance. Default.sm(15px): small section card title, such as Returns or Valuation.
Place a heading above a Card when the section title is outside the surface, or inside the card for subsection labels.
Usage
import { Heading } from "@sophic/portal-ui";
import { Card } from "@sophic/portal-ui/components/ui/card";
<Heading>Details</Heading>
<Card>{/* body */}</Card>
<Card>
<Heading>Your holding</Heading>
{/* rows */}
</Card>Props
Prop
Type
Default
Changelog
- 29 September 2026 — Added
sm(Cash / Section Card compact) besidemd/lg. Full notes - 29 September 2026 — Added (
md/lg; defaultmd). Full notes