@sableui/react 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/AGENTS.md +10 -3
  2. package/CHANGELOG.md +106 -0
  3. package/README.md +11 -4
  4. package/bin/sable.mjs +160 -18
  5. package/dist/activity-DT8VK9fx.d.ts +25 -0
  6. package/dist/adapters/github.d.ts +41 -0
  7. package/dist/adapters/github.js +24 -0
  8. package/dist/components/activity-heatmap/activity-heatmap.js +420 -0
  9. package/dist/components/activity-heatmap/activity-heatmap.meta.js +142 -0
  10. package/dist/components/activity-heatmap/index.js +9 -0
  11. package/dist/components/code-block/code-block.js +5 -3
  12. package/dist/components/code-block/code-block.meta.js +6 -0
  13. package/dist/components/dialog/dialog.js +25 -5
  14. package/dist/components/dialog/dialog.meta.js +26 -5
  15. package/dist/components/media-image/media-image.js +3 -1
  16. package/dist/components/media-image/media-image.meta.js +15 -1
  17. package/dist/components/media-tile/media-tile.js +13 -1
  18. package/dist/components/media-tile/media-tile.meta.js +10 -0
  19. package/dist/components/page-header/page-header.js +9 -4
  20. package/dist/components/page-header/page-header.meta.js +26 -1
  21. package/dist/components/pill/pill.meta.js +15 -6
  22. package/dist/components/pill/pill.variants.js +1 -0
  23. package/dist/components/search-input/search-input.js +30 -5
  24. package/dist/components/search-input/search-input.meta.js +29 -4
  25. package/dist/components/section-header/section-header.js +27 -17
  26. package/dist/components/section-header/section-header.meta.js +27 -5
  27. package/dist/components/sheet/sheet.js +15 -3
  28. package/dist/components/sheet/sheet.meta.js +2 -2
  29. package/dist/file-hashes.json +46 -36
  30. package/dist/icon-sets/reicon.js +23 -1
  31. package/dist/index.d.ts +270 -27
  32. package/dist/index.js +8 -1
  33. package/dist/layout/AspectBox.js +2 -5
  34. package/dist/layout/Bleed.js +10 -6
  35. package/dist/layout/Center.js +11 -3
  36. package/dist/layout/Columns.js +6 -3
  37. package/dist/layout/Grid.js +14 -6
  38. package/dist/layout/GridOverlay.js +7 -7
  39. package/dist/layout/Region.js +18 -3
  40. package/dist/layout/Row.js +27 -20
  41. package/dist/layout/Spacer.js +13 -2
  42. package/dist/layout/SplitPane.js +1 -1
  43. package/dist/layout/Stack.js +25 -18
  44. package/dist/layout/index.d.ts +57 -6
  45. package/dist/lib/chart/activity.js +32 -0
  46. package/dist/lib/chart/calendar.js +67 -0
  47. package/dist/lib/chart/chart-tooltip.js +2 -2
  48. package/dist/lib/chart/heat.js +55 -0
  49. package/dist/lib/focus-return.js +53 -0
  50. package/dist/lib/taxonomy.js +1 -0
  51. package/dist/styles.css +122 -114
  52. package/llms/components/activity-heatmap.md +133 -0
  53. package/llms/components/code-block.md +1 -0
  54. package/llms/components/dialog.md +34 -3
  55. package/llms/components/media-image.md +12 -0
  56. package/llms/components/media-tile.md +21 -0
  57. package/llms/components/page-header.md +16 -1
  58. package/llms/components/pill.md +24 -5
  59. package/llms/components/search-input.md +37 -4
  60. package/llms/components/section-header.md +28 -4
  61. package/llms/components/sheet.md +2 -2
  62. package/llms/layout/aspect-box.md +1 -1
  63. package/llms/layout/bleed.md +1 -1
  64. package/llms/layout/center.md +1 -1
  65. package/llms/layout/columns.md +1 -1
  66. package/llms/layout/grid.md +1 -1
  67. package/llms/layout/region.md +1 -1
  68. package/llms/layout/row.md +9 -1
  69. package/llms/layout/spacer.md +1 -1
  70. package/llms/layout/split-pane.md +1 -1
  71. package/llms/layout/stack.md +1 -1
  72. package/llms/tasks/auditing-an-app.md +31 -0
  73. package/llms/tasks/getting-started.md +10 -3
  74. package/llms/tasks/using-presets.md +1 -2
  75. package/llms-full.txt +372 -35
  76. package/llms.txt +3 -2
  77. package/package.json +6 -1
  78. package/registry.json +532 -36
  79. package/scripts/adoption.mjs +239 -0
  80. package/scripts/agent-setup.mjs +110 -18
  81. package/scripts/grade.mjs +17 -0
  82. package/scripts/wiring.mjs +2 -1
  83. package/skills/entry/SKILL.md +1 -1
  84. package/skills/sable/SKILL.md +33 -4
  85. package/skills/sable/agents/openai.yaml +1 -1
  86. package/targets/ios.json +9 -0
package/dist/styles.css CHANGED
@@ -1665,13 +1665,19 @@
1665
1665
  /* ==========================================================================
1666
1666
  Layout — responsive grid spans + split panes.
1667
1667
 
1668
- The fluid layout primitives (Region, Grid, Stack…) compute their styles inline
1669
- so any dynamic value works without Tailwind scanning a class. Breakpoint-aware
1670
- layout can't be inline (a style attribute has no media queries), so `Col` and
1671
- `SplitPane` set per-breakpoint CSS custom properties inline and these rules
1672
- resolve them mobile-first. Breakpoints match Tailwind's defaults
1673
- (sm 40 / md 48 / lg 64 / xl 80 / 2xl 96 rem) so they line up with the `lg:*`
1674
- visibility utilities the app-shell components already use.
1668
+ The fluid layout primitives (Region, Grid, Stack…) put their layout in
1669
+ classes (`flex`, `grid`, `items-*`, `px-(--page-inset)`) and pass dynamic
1670
+ values as inline CSS custom properties that those classes read, so any value
1671
+ works without Tailwind scanning a class. Never an inline `display`, `gap` or
1672
+ padding: inline style beats every utility, and `<Row className="hidden
1673
+ md:flex">` silently did nothing. Breakpoint-aware layout can't be inline (a
1674
+ style attribute has no media queries), so `Col` and `SplitPane` set
1675
+ per-breakpoint CSS custom properties inline and these rules resolve them
1676
+ mobile-first. The rules sit in `@layer components` so a utility in the
1677
+ caller's `className` (`hidden`, `lg:grid-cols-3`, `gap-8`) still wins.
1678
+ Breakpoints match Tailwind's defaults (sm 40 / md 48 / lg 64 / xl 80 /
1679
+ 2xl 96 rem) so they line up with the `lg:*` visibility utilities the
1680
+ app-shell components already use.
1675
1681
  ========================================================================== */
1676
1682
 
1677
1683
  /* Each element owns its breakpoint values. Custom properties inherit, so a
@@ -1679,18 +1685,20 @@
1679
1685
  Grid inside `Columns count={{ lg: 12 }}` drew 12 tracks at lg. Resetting
1680
1686
  them here makes an unset one invalid, so the fallback chain below runs on the
1681
1687
  element itself; the values it was given are inline and win over this. */
1682
- [data-sable-col] {
1683
- --col-span-base: initial; --col-span-sm: initial; --col-span-md: initial;
1684
- --col-span-lg: initial; --col-span-xl: initial; --col-span-2xl: initial;
1685
- --col-start-base: initial; --col-start-sm: initial; --col-start-md: initial;
1686
- --col-start-lg: initial; --col-start-xl: initial; --col-start-2xl: initial;
1687
- }
1688
- [data-sable-grid-cols] {
1689
- --cols-base: initial; --cols-sm: initial; --cols-md: initial;
1690
- --cols-lg: initial; --cols-xl: initial; --cols-2xl: initial;
1691
- }
1692
- [data-sable-split] {
1693
- --split-gap: initial;
1688
+ @layer components {
1689
+ [data-sable-col] {
1690
+ --col-span-base: initial; --col-span-sm: initial; --col-span-md: initial;
1691
+ --col-span-lg: initial; --col-span-xl: initial; --col-span-2xl: initial;
1692
+ --col-start-base: initial; --col-start-sm: initial; --col-start-md: initial;
1693
+ --col-start-lg: initial; --col-start-xl: initial; --col-start-2xl: initial;
1694
+ }
1695
+ [data-sable-grid-cols] {
1696
+ --cols-base: initial; --cols-sm: initial; --cols-md: initial;
1697
+ --cols-lg: initial; --cols-xl: initial; --cols-2xl: initial;
1698
+ }
1699
+ [data-sable-split] {
1700
+ --split-gap: initial;
1701
+ }
1694
1702
  }
1695
1703
 
1696
1704
  /* Toasts keep clear of an open Sheet's actions. A right sheet's pinned footer
@@ -1761,126 +1769,126 @@
1761
1769
  }
1762
1770
  }
1763
1771
 
1764
- /* `Col span={{ base, md, lg }}` / `start={…}` — each breakpoint resolves to the
1765
- most specific value defined at or below it (mobile-first cascade). */
1766
- [data-sable-col] {
1767
- grid-column: var(--col-start, auto) / span var(--col-span, 1);
1768
- --col-span: var(--col-span-base, 1);
1769
- --col-start: var(--col-start-base, auto);
1770
- }
1771
- @media (width >= 40rem) {
1772
+ @layer components {
1773
+ /* `Col span={{ base, md, lg }}` / `start={…}` — each breakpoint resolves to the
1774
+ most specific value defined at or below it (mobile-first cascade). */
1772
1775
  [data-sable-col] {
1773
- --col-span: var(--col-span-sm, var(--col-span-base, 1));
1774
- --col-start: var(--col-start-sm, var(--col-start-base, auto));
1776
+ grid-column: var(--col-start, auto) / span var(--col-span, 1);
1777
+ --col-span: var(--col-span-base, 1);
1778
+ --col-start: var(--col-start-base, auto);
1779
+ }
1780
+ @media (width >= 40rem) {
1781
+ [data-sable-col] {
1782
+ --col-span: var(--col-span-sm, var(--col-span-base, 1));
1783
+ --col-start: var(--col-start-sm, var(--col-start-base, auto));
1784
+ }
1775
1785
  }
1776
- }
1777
- @media (width >= 48rem) {
1778
- [data-sable-col] {
1779
- --col-span: var(--col-span-md, var(--col-span-sm, var(--col-span-base, 1)));
1780
- --col-start: var(--col-start-md, var(--col-start-sm, var(--col-start-base, auto)));
1786
+ @media (width >= 48rem) {
1787
+ [data-sable-col] {
1788
+ --col-span: var(--col-span-md, var(--col-span-sm, var(--col-span-base, 1)));
1789
+ --col-start: var(--col-start-md, var(--col-start-sm, var(--col-start-base, auto)));
1790
+ }
1781
1791
  }
1782
- }
1783
- @media (width >= 64rem) {
1784
- [data-sable-col] {
1785
- --col-span: var(--col-span-lg, var(--col-span-md, var(--col-span-sm, var(--col-span-base, 1))));
1786
- --col-start: var(--col-start-lg, var(--col-start-md, var(--col-start-sm, var(--col-start-base, auto))));
1792
+ @media (width >= 64rem) {
1793
+ [data-sable-col] {
1794
+ --col-span: var(--col-span-lg, var(--col-span-md, var(--col-span-sm, var(--col-span-base, 1))));
1795
+ --col-start: var(--col-start-lg, var(--col-start-md, var(--col-start-sm, var(--col-start-base, auto))));
1796
+ }
1787
1797
  }
1788
- }
1789
- @media (width >= 80rem) {
1790
- [data-sable-col] {
1791
- --col-span: var(--col-span-xl, var(--col-span-lg, var(--col-span-md, var(--col-span-sm, var(--col-span-base, 1)))));
1792
- --col-start: var(--col-start-xl, var(--col-start-lg, var(--col-start-md, var(--col-start-sm, var(--col-start-base, auto)))));
1798
+ @media (width >= 80rem) {
1799
+ [data-sable-col] {
1800
+ --col-span: var(--col-span-xl, var(--col-span-lg, var(--col-span-md, var(--col-span-sm, var(--col-span-base, 1)))));
1801
+ --col-start: var(--col-start-xl, var(--col-start-lg, var(--col-start-md, var(--col-start-sm, var(--col-start-base, auto)))));
1802
+ }
1793
1803
  }
1794
- }
1795
- @media (width >= 96rem) {
1796
- [data-sable-col] {
1797
- --col-span: var(--col-span-2xl, var(--col-span-xl, var(--col-span-lg, var(--col-span-md, var(--col-span-sm, var(--col-span-base, 1))))));
1798
- --col-start: var(--col-start-2xl, var(--col-start-xl, var(--col-start-lg, var(--col-start-md, var(--col-start-sm, var(--col-start-base, auto))))));
1804
+ @media (width >= 96rem) {
1805
+ [data-sable-col] {
1806
+ --col-span: var(--col-span-2xl, var(--col-span-xl, var(--col-span-lg, var(--col-span-md, var(--col-span-sm, var(--col-span-base, 1))))));
1807
+ --col-start: var(--col-start-2xl, var(--col-start-xl, var(--col-start-lg, var(--col-start-md, var(--col-start-sm, var(--col-start-base, auto))))));
1808
+ }
1799
1809
  }
1800
- }
1801
1810
 
1802
- /* `Columns count` / `Grid cols` as a breakpoint map — set per-breakpoint --cols-*
1803
- props inline; resolved mobile-first into the track's column count, so a grid
1804
- thins to fewer columns on small screens (e.g. 2 → 6 → 12). */
1805
- [data-sable-grid-cols] {
1806
- display: grid;
1807
- grid-template-columns: repeat(var(--cols, var(--grid-columns)), minmax(0, 1fr));
1808
- --cols: var(--cols-base, var(--grid-columns));
1809
- }
1810
- @media (width >= 40rem) {
1811
+ /* `Columns count` / `Grid cols` as a breakpoint map — set per-breakpoint --cols-*
1812
+ props inline; resolved mobile-first into the track's column count, so a grid
1813
+ thins to fewer columns on small screens (e.g. 2 → 6 → 12). */
1811
1814
  [data-sable-grid-cols] {
1812
- --cols: var(--cols-sm, var(--cols-base, var(--grid-columns)));
1815
+ grid-template-columns: repeat(var(--cols, var(--grid-columns)), minmax(0, 1fr));
1816
+ --cols: var(--cols-base, var(--grid-columns));
1813
1817
  }
1814
- }
1815
- @media (width >= 48rem) {
1816
- [data-sable-grid-cols] {
1817
- --cols: var(--cols-md, var(--cols-sm, var(--cols-base, var(--grid-columns))));
1818
+ @media (width >= 40rem) {
1819
+ [data-sable-grid-cols] {
1820
+ --cols: var(--cols-sm, var(--cols-base, var(--grid-columns)));
1821
+ }
1818
1822
  }
1819
- }
1820
- @media (width >= 64rem) {
1821
- [data-sable-grid-cols] {
1822
- --cols: var(
1823
- --cols-lg,
1824
- var(--cols-md, var(--cols-sm, var(--cols-base, var(--grid-columns))))
1825
- );
1823
+ @media (width >= 48rem) {
1824
+ [data-sable-grid-cols] {
1825
+ --cols: var(--cols-md, var(--cols-sm, var(--cols-base, var(--grid-columns))));
1826
+ }
1826
1827
  }
1827
- }
1828
- @media (width >= 80rem) {
1829
- [data-sable-grid-cols] {
1830
- --cols: var(
1831
- --cols-xl,
1832
- var(
1828
+ @media (width >= 64rem) {
1829
+ [data-sable-grid-cols] {
1830
+ --cols: var(
1833
1831
  --cols-lg,
1834
1832
  var(--cols-md, var(--cols-sm, var(--cols-base, var(--grid-columns))))
1835
- )
1836
- );
1833
+ );
1834
+ }
1837
1835
  }
1838
- }
1839
- @media (width >= 96rem) {
1840
- [data-sable-grid-cols] {
1841
- --cols: var(
1842
- --cols-2xl,
1843
- var(
1836
+ @media (width >= 80rem) {
1837
+ [data-sable-grid-cols] {
1838
+ --cols: var(
1844
1839
  --cols-xl,
1845
1840
  var(
1846
1841
  --cols-lg,
1847
1842
  var(--cols-md, var(--cols-sm, var(--cols-base, var(--grid-columns))))
1848
1843
  )
1849
- )
1850
- );
1844
+ );
1845
+ }
1846
+ }
1847
+ @media (width >= 96rem) {
1848
+ [data-sable-grid-cols] {
1849
+ --cols: var(
1850
+ --cols-2xl,
1851
+ var(
1852
+ --cols-xl,
1853
+ var(
1854
+ --cols-lg,
1855
+ var(--cols-md, var(--cols-sm, var(--cols-base, var(--grid-columns))))
1856
+ )
1857
+ )
1858
+ );
1859
+ }
1851
1860
  }
1852
- }
1853
1861
 
1854
- /* `SplitPane collapseBelow="lg"` — a single stacked column below the breakpoint;
1855
- a two-column track (primary:secondary fr ratio) at or above it. */
1856
- [data-sable-split] {
1857
- display: grid;
1858
- gap: var(--split-gap, var(--grid-gutter));
1859
- grid-template-columns: 1fr;
1860
- }
1861
- @media (width >= 40rem) {
1862
- [data-sable-split][data-collapse="sm"] {
1863
- grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1862
+ /* `SplitPane collapseBelow="lg"` — a single stacked column below the breakpoint;
1863
+ a two-column track (primary:secondary fr ratio) at or above it. */
1864
+ [data-sable-split] {
1865
+ gap: var(--split-gap, var(--grid-gutter));
1866
+ grid-template-columns: 1fr;
1864
1867
  }
1865
- }
1866
- @media (width >= 48rem) {
1867
- [data-sable-split][data-collapse="md"] {
1868
- grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1868
+ @media (width >= 40rem) {
1869
+ [data-sable-split][data-collapse="sm"] {
1870
+ grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1871
+ }
1869
1872
  }
1870
- }
1871
- @media (width >= 64rem) {
1872
- [data-sable-split][data-collapse="lg"] {
1873
- grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1873
+ @media (width >= 48rem) {
1874
+ [data-sable-split][data-collapse="md"] {
1875
+ grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1876
+ }
1874
1877
  }
1875
- }
1876
- @media (width >= 80rem) {
1877
- [data-sable-split][data-collapse="xl"] {
1878
- grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1878
+ @media (width >= 64rem) {
1879
+ [data-sable-split][data-collapse="lg"] {
1880
+ grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1881
+ }
1879
1882
  }
1880
- }
1881
- @media (width >= 96rem) {
1882
- [data-sable-split][data-collapse="2xl"] {
1883
- grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1883
+ @media (width >= 80rem) {
1884
+ [data-sable-split][data-collapse="xl"] {
1885
+ grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1886
+ }
1887
+ }
1888
+ @media (width >= 96rem) {
1889
+ [data-sable-split][data-collapse="2xl"] {
1890
+ grid-template-columns: var(--split-primary, 1fr) var(--split-secondary, 1fr);
1891
+ }
1884
1892
  }
1885
1893
  }
1886
1894
 
@@ -0,0 +1,133 @@
1
+ # ActivityHeatmap
2
+
3
+ **Status:** stable
4
+
5
+ A calendar heatmap: one value per day as a grid of weeks by weekdays — the GitHub contribution graph, for any daily measure. Levels by quartile, categories by source, a real ARIA grid with one tab stop, and a sideways scroll on narrow screens that opens on the latest week.
6
+
7
+ **Keywords:** heatmap, calendar heatmap, contribution graph, contributions, activity, github, streak, habit, daily, commits, uptime
8
+
9
+ ## Usage
10
+
11
+ Use ActivityHeatmap to show how often something happened day by day over weeks or months: commits, habits kept, orders, uptime. Pass days as ISO dates with a value; levels, colours, labels, keyboard and tooltips work with no further props. Put it inside a Card and compose any totals beside it (NumberTicker, StatRowBlock). For a value over time that a reader needs to compare precisely, use AreaChart or BarChart; for a month calendar with marked days (a streak calendar), use Calendar.
12
+
13
+ ### Best practices
14
+
15
+ - Do: Pass dates as "YYYY-MM-DD" strings. The grid reads them as calendar days, so no time zone can shift a day — never build them with `new Date(...).toISOString()` from a local date.
16
+ - Do: Give it a `unit` ("contribution" / "contributions") so the tooltip and every cell's name say what the number counts.
17
+ - Do: Let the default quantile scale pick levels — one exceptional day then does not wash every other day out. Pass a day's own `level` when the source already has one (GitHub's API).
18
+ - Don't: Use it for a handful of values or for values a reader must compare exactly; a heatmap shows rhythm, not amounts. Use BarChart. → use **BarChart**, **AreaChart**
19
+ - Don't: Use it for a single month of marked days with a streak; that is Calendar with modifiers. → use **Calendar**
20
+ - Don't: Fetch inside the component or call GitHub from the browser with a token. Fetch on your server and pass days in; `@sableui/react/adapters/github` converts GitHub's response.
21
+
22
+ ### Anatomy
23
+
24
+ | Part | Required | Description |
25
+ | --- | --- | --- |
26
+ | Weekday labels | no | Short weekday names beside the rows, outside the scroller so the weeks never slide under them. |
27
+ | Month labels | no | Short month names over each month's first week; they scroll with their weeks. |
28
+ | Cell grid | yes | A role=grid table, one gridcell per day, inside a horizontal Scroller that opens on the latest week. |
29
+ | Tooltip | no | The chart tooltip card, anchored to the hovered, focused or tapped day. |
30
+ | Legend | no | A Less–More ramp for intensity, or swatches for categories. |
31
+
32
+ ## Props
33
+
34
+ | Name | Type | Default | Description |
35
+ | --- | --- | --- | --- |
36
+ | label | string | — | What the grid shows ("Contributions in 2026") — its caption and accessible name. |
37
+ | data | ActivityDay[] \| Record<string, number> | — | The days: `{ date: "YYYY-MM-DD", value, level?, category? }[]`, or a map of date to value. Sparse is fine — a missing day is 0; duplicates sum. |
38
+ | start | string | 53 weeks before end | First day drawn, "YYYY-MM-DD". The default starts at the beginning of that week, as GitHub's does. |
39
+ | end | string | today | Last day drawn. Days after today inside the range are drawn hollow and skipped by the keyboard. |
40
+ | year | number | — | Draw Jan 1 – Dec 31 of this year. Wins over start / end. |
41
+ | weekStart | 0 \| 1 | the locale's | 0 puts Sunday on the top row, 1 Monday. |
42
+ | levels | number | 5 | How many levels, including the empty level 0. |
43
+ | levelScale | "quantile" \| "linear" \| number[] \| ((value, stats) => number) | "quantile" | How a value becomes a level. Quantile splits the positive values evenly, as GitHub does; an array gives each level's lower bound from 1 up; a function decides. A day's own `level` always wins. |
44
+ | tone | ChartTone | "1" | The hue of the intensity ramp. Decorative tones lead, as on every chart; "success" gives the GitHub look. |
45
+ | categories | ChartCategories | — | Colour days by `day.category` (label, tone or colour per key). Pair with `levels={2}` for flat category colours. |
46
+ | unit | string \| { one: string; other: string } | — | Names the value in the tooltip and each cell's accessible name, pluralised with Intl.PluralRules. |
47
+ | formatValue | (value: number) => string | full to 9,999, compact past | Formats a value wherever it is shown or read. |
48
+ | tooltip | boolean \| ((day: ActivityHeatmapDay) => ReactNode) | true | Show the tooltip on hover, focus and tap; a function replaces its content on the same card. |
49
+ | legend | boolean | true | The Less–More ramp for intensity, swatches for categories. |
50
+ | legendLabels | [string, string] | ["Less", "More"] | The ramp's end words. |
51
+ | monthLabels | boolean | true | Short month names over each month's first week. |
52
+ | weekdayLabels | "alternate" \| "all" \| "none" | "alternate" | Which weekday names to show beside the rows; alternate is Mon, Wed, Fri. |
53
+ | size | "sm" \| "md" \| "lg" | "md" | The smallest a cell may get (10, 12, 14 px) before the grid scrolls instead of shrinking. |
54
+ | stretch | boolean | true | Grow cells to fill the width, up to 20 px. false keeps them at `size`. |
55
+ | activeDate | string \| null | — | The hovered or focused day, controlled. Pair with defaultActiveDate / onActiveDateChange. |
56
+ | selectedDate | string \| null | — | The selected day, controlled. Selection is on only when onSelectDate is set. |
57
+ | onSelectDate | (date: string) => void | — | Called when a day is clicked or chosen with Enter / Space — to filter a feed below, as GitHub does. |
58
+ | renderCell | (day, cell) => ReactNode | — | Draw something over a cell's fill — an icon for a milestone, a reward, an outage. |
59
+ | loading | boolean | false | Draw the empty grid, shimmering, while data loads. |
60
+ | motion | "full" \| "subtle" \| "off" | "full" | Turns the arrival down; `subtle` shows the finished grid at once. |
61
+ | locale | string | runtime locale | Month and weekday names, numbers and plurals. |
62
+
63
+ ## Tokens used
64
+
65
+ `foreground`, `muted-foreground`, `border-strong`, `ring`, `tone-1-mark`, `tone-2-mark`, `tone-3-mark`, `success-mark`, `tone-info-mark`
66
+
67
+ ## Motion
68
+
69
+ - **arrival** · Cell grid · _custom (outside the recipe layer)_ — Weeks fade in left to right as the grid first scrolls into view, staggered on the chart motion helpers; expressive, so subtle shows the finished grid.
70
+ - **response** · Cell · _custom (outside the recipe layer)_ — The active day takes a ring outline at once and the tooltip glides to it; the other cells stay still — dimming hundreds of cells reads as a flash.
71
+ - **transition** · Cell · _custom (outside the recipe layer)_ — When data or the range changes, each cell's fill cross-fades on the base duration token, so the reader sees which days changed.
72
+ - **activity** · Cell grid · `motion-shimmer` — `loading` shimmers the empty grid until days arrive.
73
+
74
+ ## Accessibility
75
+
76
+ - The grid is a role=grid table, as GitHub's is: weekday row headers and month column headers carry full names for screen readers, and the caption is `label`.
77
+ - One tab stop. Arrows move a day or a week; Home / End go to the ends of the row, Page Up / Page Down to the ends of the column, Ctrl+Home / Ctrl+End to the first and last day. Enter or Space selects when onSelectDate is set; Escape hides the tooltip.
78
+ - Each cell is named with its date and value ("Tuesday, October 14, 2026: 12 contributions") and described by its level's words, which the legend repeats visually.
79
+ - Levels rise in lightness, so they read without colour; under forced colours each level draws as a larger inner square.
80
+
81
+ ## Related
82
+
83
+ - Components: Card, NumberTicker, BarChart, Calendar, Scroller
84
+
85
+ ## Examples
86
+
87
+ ### Contributions, last year
88
+
89
+ ```tsx
90
+ import { ActivityHeatmap } from "@sableui/react"
91
+
92
+ const days = [
93
+ { date: "2026-10-12", value: 4 },
94
+ { date: "2026-10-13", value: 11 },
95
+ { date: "2026-10-14", value: 2 },
96
+ ]
97
+
98
+ <ActivityHeatmap label="Contributions in the last year" data={days} tone="success" unit={{ one: "contribution", other: "contributions" }} />
99
+ ```
100
+
101
+ ### Two sources, in a card
102
+
103
+ ```tsx
104
+ import { ActivityHeatmap, Card, CardContent, CardHeader, CardTitle, mergeActivity } from "@sableui/react"
105
+
106
+ const github = [{ date: "2026-10-13", value: 6 }]
107
+ const codex = [{ date: "2026-10-13", value: 1 }, { date: "2026-10-14", value: 3 }]
108
+
109
+ <Card>
110
+ <CardHeader>
111
+ <CardTitle>Building, day by day</CardTitle>
112
+ </CardHeader>
113
+ <CardContent>
114
+ <ActivityHeatmap
115
+ label="GitHub and Codex activity in 2026"
116
+ year={2026}
117
+ levels={2}
118
+ data={mergeActivity({ github, codex })}
119
+ categories={{ github: { label: "GitHub", tone: "success" }, codex: { label: "Codex", tone: "info" }, both: { label: "Both", tone: "2" } }}
120
+ />
121
+ </CardContent>
122
+ </Card>
123
+ ```
124
+
125
+ ### Selecting a day
126
+
127
+ ```tsx
128
+ import { ActivityHeatmap } from "@sableui/react"
129
+
130
+ const [day, setDay] = useState<string | null>(null)
131
+
132
+ <ActivityHeatmap label="Orders per day" data={{ "2026-10-13": 18, "2026-10-14": 25 }} unit="orders" selectedDate={day} onSelectDate={setDay} />
133
+ ```
@@ -40,6 +40,7 @@ Use CodeBlock for multiline code samples that users may read, inspect, or copy.
40
40
  | showCopy | boolean | true | Show the copy affordance — in the header bar with a filename, floating in the corner without one. |
41
41
  | highlight | ((code: string) => ReactNode) \| false | — | Highlighter for this block; overrides CodeHighlightProvider. false renders plain text inside a provider. |
42
42
  | prompt | string | — | A shell prompt ("$", ">"). Makes it a one-line command: the prompt is dimmed and unselectable, the line truncates, and copy takes only code. |
43
+ | wrap | boolean | false | Wrap long lines instead of scrolling them. For prose in a code face (a prompt to paste into an agent, a log line); code keeps scrolling, since wrapping breaks its indentation. |
43
44
 
44
45
  ## Tokens used
45
46
 
@@ -17,11 +17,14 @@ Use Dialog for focused decisions, short modal forms, confirmations, and content
17
17
  - Do: Use showCloseButton for dismissible informational dialogs; keep destructive confirmations action-led.
18
18
  - Do: In a destructive confirmation, state the consequence in DialogDescription ("This is permanent.") and reserve the destructive button variant for actions that cannot be undone.
19
19
  - Do: Use size="fullscreen" when an image, video, or gallery needs a larger view than the layout can give it. Give the popup an accessible name (aria-label on DialogContent, or a visually hidden DialogTitle) and alt text on the media.
20
+ - Do: Open a dialog from your own button with controlled open/onOpenChange when the trigger is not a DialogTrigger (a menu item, a row action, a keyboard shortcut). Focus returns on close to whatever held it when the dialog opened, with no finalFocus wiring; pass finalFocus only to send it somewhere else.
21
+ - Do: Set keepMounted on DialogContent for a draft the user may come back to (a compose form, a long comment, a half-filled request). Closing by Esc or a stray click then hides the dialog instead of unmounting it, so the fields are still filled when it reopens. Clear the draft yourself on submit or discard.
20
22
  - Do: Use the AlertDialog family for a confirmation that must be answered (discard changes, leave without saving). It looks identical but is role="alertdialog" and a backdrop click does not dismiss it — only Cancel, Esc, or the action. For irreversible deletes, use DestructiveActionModal, which is built on it.
21
23
  - Don't: Put large multipage workflows in a centered dialog. Use Sheet or a page route when the task needs space. → use **Sheet**
22
24
  - Don't: Use size="fullscreen" for forms, confirmations, or anything that isn't media. A dialog that happens to need room is a Sheet or a page; the fullscreen affordances (dark scrim, corner close, centred content) all assume something to look at. → use **Sheet**
23
25
  - Don't: Hide the close button at size="fullscreen" without another visible way out. A full-bleed viewer that only Esc dismisses is a dead end for anyone who doesn't know the key.
24
26
  - Don't: Open a dialog for passive status updates. Use Toast, Banner, or InlineStatus instead. → use **Toast**, **Banner**, **InlineStatus**
27
+ - Don't: Set keepMounted by default. A dialog that should open fresh (a confirmation, a create form after a successful save) would show stale input, and live content (polling, video) keeps running while hidden.
25
28
 
26
29
  ### Anatomy
27
30
 
@@ -37,7 +40,7 @@ Use Dialog for focused decisions, short modal forms, confirmations, and content
37
40
 
38
41
  | Name | Type | Description |
39
42
  | --- | --- | --- |
40
- | DialogContent | Base UI Popup props + size?: "default" \| "fullscreen" + showCloseButton?: boolean + scroll?: boolean + className | Backdrop + popup; portals to <body>. Composes DialogOverlay by default. size="fullscreen" is the media viewer: a near-opaque scrim (bg-overlay/95), an edge-to-edge popup that centres its children with no card chrome, motion-fade instead of motion-pop, and a safe-area-aware floating close button (Button variant="floating"); at that size showCloseButton defaults to true and scroll to false, and the media fits itself with max-h-full max-w-full object-contain. At the default size, showCloseButton (defaults to false) renders a built-in close (X) button in the top-end corner, and the header leaves room for it (Icon name="xmark"). The popup caps at the viewport height less a 1rem margin and wraps its children in a scrolling region, so a tall dialog scrolls instead of overflowing a viewport whose own scroll is locked; pass scroll={false} when the dialog owns its internal layout (a pinned header over a scrolling body) and supplies its own min-h-0 scroll region. |
43
+ | DialogContent | Base UI Popup props (initialFocus, finalFocus) + size?: "default" \| "fullscreen" + showCloseButton?: boolean + scroll?: boolean + keepMounted?: boolean + className | Backdrop + popup; portals to <body>. Composes DialogOverlay by default. size="fullscreen" is the media viewer: a near-opaque scrim (bg-overlay/95), an edge-to-edge popup that centres its children with no card chrome, motion-fade instead of motion-pop, and a safe-area-aware floating close button (Button variant="floating"); at that size showCloseButton defaults to true and scroll to false, and the media fits itself with max-h-full max-w-full object-contain. At the default size, showCloseButton (defaults to false) renders a built-in close (X) button in the top-end corner, and the header leaves room for it (Icon name="xmark"). The popup caps at the viewport height less a 1rem margin and wraps its children in a scrolling region, so a tall dialog scrolls instead of overflowing a viewport whose own scroll is locked; pass scroll={false} when the dialog owns its internal layout (a pinned header over a scrolling body) and supplies its own min-h-0 scroll region. keepMounted (default false) keeps the content mounted and hidden while closed, so a draft survives close and reopen. finalFocus defaults to the element focused when the dialog opened, trigger or not; an explicit finalFocus (a ref, a function, or false) wins. |
41
44
  | DialogOverlay | Base UI Backdrop props + size?: "default" \| "fullscreen" + className | The styleable scrim/backdrop — bg-overlay/(--scrim-alpha) by default (50% light, 72% dark, so it dims a near-black page as visibly as a white one), near-opaque bg-overlay/95 at size="fullscreen". Composed into DialogContent (at the matching size) by default; exported for manual styling. |
42
45
  | DialogTrigger | Base UI Dialog.Trigger props (render) | Element that opens the dialog. Compose via render prop. |
43
46
  | DialogClose | Base UI Dialog.Close props (render) | Element that dismisses the dialog. Compose via render prop. |
@@ -45,7 +48,7 @@ Use Dialog for focused decisions, short modal forms, confirmations, and content
45
48
  | DialogTitle | Base UI Dialog.Title props + className | The dialog's accessible name — wires aria-labelledby on the popup. |
46
49
  | DialogDescription | Base UI Dialog.Description props + className | Muted supporting line; wires aria-describedby. |
47
50
  | DialogFooter | ComponentProps<"div"> | Bottom action row (right-aligned buttons). |
48
- | AlertDialog (Root) | Base UI AlertDialog.Root props (open, defaultOpen, onOpenChange) | Root for a confirmation that needs an answer. Always modal; the popup is role="alertdialog" and a click outside does not dismiss — only an AlertDialogClose, an action that sets open to false, or Esc. |
51
+ | AlertDialog (Root) | Base UI AlertDialog.Root props (open, defaultOpen, onOpenChange) | Root for a confirmation that needs an answer. Always modal; the popup is role="alertdialog" and a click outside does not dismiss — only an AlertDialogClose, an action that sets open to false, or Esc. Returns focus on close to the element focused when it opened, exactly as Dialog does. |
49
52
  | AlertDialogTrigger | Base UI AlertDialog.Trigger props (render) | Opens the alert dialog. |
50
53
  | AlertDialogContent / AlertDialogOverlay / AlertDialogTitle / AlertDialogDescription / AlertDialogHeader / AlertDialogFooter / AlertDialogClose | Same props as the matching Dialog part | The Dialog parts under AlertDialog names — Base UI shares the popup, backdrop, title, description and close parts between the two, so the surface is identical. Pass initialFocus to AlertDialogContent (a ref to the Cancel button) to open focus on the safe action. |
51
54
 
@@ -53,7 +56,10 @@ Use Dialog for focused decisions, short modal forms, confirmations, and content
53
56
 
54
57
  | Name | Type | Default | Description |
55
58
  | --- | --- | --- | --- |
56
- | Dialog (Root) | Base UI Dialog.Root props (open, defaultOpen, onOpenChange, modal) | — | Controls open state. Uncontrolled by default. |
59
+ | Dialog (Root) | Base UI Dialog.Root props (open, defaultOpen, onOpenChange, modal) | — | Controls open state. Uncontrolled by default. Records the element that holds focus when the dialog opens (through a DialogTrigger, or your own button flipping a controlled open) and returns focus there on close. |
60
+ | open | boolean | — | Controlled open state. Pair with onOpenChange — for a dialog opened from your own button instead of a DialogTrigger. |
61
+ | defaultOpen | boolean | false | Initial open state when uncontrolled. |
62
+ | onOpenChange | (open: boolean, eventDetails) => void | — | Called when the dialog asks to open or close (a trigger, Esc, an outside click, DialogClose). |
57
63
 
58
64
  ## Variants
59
65
 
@@ -75,6 +81,8 @@ Use Dialog for focused decisions, short modal forms, confirmations, and content
75
81
 
76
82
  - Base UI provides focus trapping, scroll lock, aria-modal, and labelled-by wiring (DialogTitle).
77
83
  - Content taller than the viewport scrolls inside the dialog (thin scrollbar, contained overscroll) rather than overflowing off screen — the page behind is scroll-locked, so anything past the edge would be unreachable.
84
+ - On close, focus returns to the element that held it when the dialog opened, whether a DialogTrigger opened it or your own button set a controlled open. It is captured before the content mounts, so an autoFocus field inside cannot displace it. If that element has left the page, Base UI's default (the trigger, if any) applies; an explicit finalFocus on the content always wins. AlertDialog and Sheet behave the same.
85
+ - keepMounted hides closed content with the hidden attribute, so a kept draft is out of the accessibility tree and the tab order until the dialog reopens.
78
86
  - Esc and click-outside dismiss by default. AlertDialog keeps Esc but ignores click-outside, and its popup is role="alertdialog".
79
87
  - Animate via data-[starting-style]/data-[ending-style] attributes.
80
88
  - size="fullscreen" has no title chrome, so name the popup yourself: aria-label on DialogContent (or a visually hidden DialogTitle), plus alt text on the media — the zoomed image is a separate image to assistive technology. Its built-in close button carries aria-label="Close" and clears the safe-area insets (notch, home indicator).
@@ -118,6 +126,29 @@ import { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFo
118
126
  <Dialog><DialogTrigger render={<Button variant="secondary">Rename collection</Button>} /><DialogContent showCloseButton><DialogHeader><DialogTitle>Rename collection</DialogTitle><DialogDescription>Update the display name shown to collectors.</DialogDescription></DialogHeader><Form><Field label="Collection name"><Input defaultValue="Midnight Archive" /></Field><DialogFooter><DialogClose render={<Button variant="secondary">Cancel</Button>} /><Button type="submit">Save changes</Button></DialogFooter></Form></DialogContent></Dialog>
119
127
  ```
120
128
 
129
+ ### Opened from your own button, keeping a draft
130
+
131
+ ```tsx
132
+ import { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Field, Textarea } from "@sableui/react"
133
+
134
+ const [open, setOpen] = useState(false)
135
+
136
+ <Button variant="secondary" onClick={() => setOpen(true)}>New message</Button>
137
+ <Dialog open={open} onOpenChange={setOpen}>
138
+ <DialogContent keepMounted showCloseButton>
139
+ <DialogHeader>
140
+ <DialogTitle>New message</DialogTitle>
141
+ <DialogDescription>Close it any time. Your draft is here when you come back.</DialogDescription>
142
+ </DialogHeader>
143
+ <Field label="Message"><Textarea /></Field>
144
+ <DialogFooter>
145
+ <DialogClose render={<Button variant="secondary">Close</Button>} />
146
+ <Button onClick={() => setOpen(false)}>Send</Button>
147
+ </DialogFooter>
148
+ </DialogContent>
149
+ </Dialog>
150
+ ```
151
+
121
152
  ### Destructive confirmation
122
153
 
123
154
  ```tsx
@@ -15,6 +15,7 @@ Use MediaImage wherever content imagery may be missing or broken: a cover in a g
15
15
  - Do: Give the box the shape: `<AspectBox ratio={1} className="rounded-md"><MediaImage … /></AspectBox>`, or `size-14 rounded-md` on MediaImage itself for a thumbnail. It clips to whatever radius the box has.
16
16
  - Do: Pass `seed` (the title or an id) when `alt` is empty, so the fallback art is the item's own and stays the same in every list it appears in.
17
17
  - Do: Leave `alt` empty when a visible title sits next to the image — a tile, a row — and describe it when the image stands alone. A set `alt` also names the fallback, so the description survives a broken URL.
18
+ - Do: Set `position` when a cover crop would cut off the subject — a face high in a portrait, a product at one edge. Store the focus with the image (`"35% 50%"`) rather than re-cropping the file.
18
19
  - Don't: Do not hand-write `<img onError={() => setBroken(true)}>`. An image that fails before hydration never fires the handler on a prerendered page; MediaImage preloads off the DOM and catches it.
19
20
  - Don't: Do not use it for profile pictures. A person is a circle with initials — Avatar, whose `variant="art"` is the same fallback with the person's initials over it.
20
21
 
@@ -27,6 +28,7 @@ Use MediaImage wherever content imagery may be missing or broken: a cover in a g
27
28
  | seed | string \| number | — | Seeds the fallback art. Defaults to `alt`; pass the title or an id when `alt` is empty. |
28
29
  | fallback | ReactNode | — | Replaces the GradientArt fallback — a glyph or monogram. Fills the frame under the same clipping. |
29
30
  | fit | "cover" \| "contain" | "cover" | `cover` crops to fill (artwork, photos); `contain` letterboxes on the muted surface (a logo, a product that must not be cropped). |
31
+ | position | CSSProperties["objectPosition"] | "center" | Where the image sits in its frame — CSS `object-position`, the sibling of `fit`. Under `cover` it is the part the crop keeps (`"50% 30%"` for a face, `"bottom"` for a horizon); under `contain` it is the side the letterbox gives way to. |
30
32
  | srcSet | string | — | Responsive sources, passed to the `<img>`. |
31
33
  | sizes | string | — | The `sizes` attribute for `srcSet`. |
32
34
  | loading | "lazy" \| "eager" | "lazy" | Native lazy loading. Use `eager` for the first row of a grid above the fold. |
@@ -96,3 +98,13 @@ import { AspectBox, MediaImage } from "@sableui/react"
96
98
  <MediaImage src={brand.logo} alt={brand.name} fit="contain" />
97
99
  </AspectBox>
98
100
  ```
101
+
102
+ ### Crop focus per image
103
+
104
+ ```tsx
105
+ import { AspectBox, MediaImage } from "@sableui/react"
106
+
107
+ <AspectBox ratio={1} className="rounded-md">
108
+ <MediaImage src={project.thumbnail} seed={project.title} position={project.focus ?? "center"} />
109
+ </AspectBox>
110
+ ```
@@ -42,6 +42,7 @@ The item in a media grid or shelf: an album, a playlist, a video, a podcast, a f
42
42
  | sizes | string | — | The cover's layout width for `srcSet`, e.g. `"(min-width: 64rem) 25vw, 50vw"`. |
43
43
  | alt | string | "" | Cover alt text. Empty by default: the title below already names the item. |
44
44
  | seed | string \| number | — | Seeds the fallback art. Defaults to `title` when it is a string. |
45
+ | position | CSSProperties["objectPosition"] | "center" | Which part of the cover the crop keeps — CSS `object-position`, forwarded to the cover's MediaImage: `"50% 30%"` for a face, `"top"` for a poster's title. Store it with the image when each one frames differently. |
45
46
  | aspect | "square" \| "video" \| "poster" \| number | "square" | The cover's shape: square (albums, podcasts), video (16:9), poster (2:3 — films, books), or any width / height ratio. |
46
47
  | size | "sm" \| "md" \| "lg" | "md" | Moves the type tier, the cover-to-text gap, the corner and the overlay inset together. |
47
48
  | href | string | — | Where the tile goes. The title becomes the link, stretched over the whole tile. |
@@ -166,6 +167,26 @@ import { Grid, MediaTile } from "@sableui/react"
166
167
  </Grid>
167
168
  ```
168
169
 
170
+ ### Portfolio grid with crop focus
171
+
172
+ ```tsx
173
+ import { Grid, MediaTile } from "@sableui/react"
174
+
175
+ <Grid minItemWidth="16rem" gap={4}>
176
+ {projects.map((project) => (
177
+ <MediaTile
178
+ key={project.slug}
179
+ aspect="video"
180
+ title={project.title}
181
+ subtitle={project.client}
182
+ src={project.thumbnail}
183
+ position={project.focus}
184
+ href={`/work/${project.slug}`}
185
+ />
186
+ ))}
187
+ </Grid>
188
+ ```
189
+
169
190
  ### Poster shelf
170
191
 
171
192
  ```tsx
@@ -4,7 +4,7 @@
4
4
 
5
5
  In-flow page heading block: a title row (optional back control + actions) over an optional description, with room for children (filters, tabs) below.
6
6
 
7
- **Keywords:** page header, title, lede, page actions
7
+ **Keywords:** page header, title, lede, page actions, page title size, display title, editorial header, hero title
8
8
 
9
9
  ## Usage
10
10
 
@@ -14,6 +14,8 @@ Use PageHeader to establish a page's title, supporting description, and primary
14
14
 
15
15
  - Do: Use one PageHeader per major page or route.
16
16
  - Do: Keep the title literal and put explanation in the lede or nearby content.
17
+ - Do: Use size="lg" for an editorial page (a personal site, a marketing page, an article index): a display-tier title over a body-lg lede. Pair it with SectionHeader size="lg" for the sections below, so the steps stay display → heading-2 → body.
18
+ - Don't: Use size="lg" on product routes (settings, lists, dashboards). Display type is never product chrome: there it competes with the content it frames. Keep md, and do not restyle the title with a display class through className either.
17
19
  - Don't: Do not use PageHeader inside repeated cards, dialogs, or compact panels.
18
20
  - Don't: Do not use a second PageHeader for a section of the page. It is the route's one h1; each section below it takes a SectionHeader (an h2 with the same title row, description and actions).
19
21
  - Don't: Do not put it outside the Region that holds the page content. It then sits at a different measure from what it introduces, and the page reads as two documents.
@@ -27,6 +29,11 @@ Use PageHeader to establish a page's title, supporting description, and primary
27
29
  | back | ReactNode | — | Leading element before the title — typically a back control on drill-in routes. Keep it a ghost icon Button (size="icon", variant="ghost", aria-label="Back") so it stays quieter than the title. A ghost back control bleeds by its inset at the start, so its glyph lines up with the content edge below (Button bleed="none" opts out). |
28
30
  | actions | ReactNode | — | Trailing actions aligned to the title row's end. They drop under the title when the title would have less than 20rem beside them (on a phone, nearly always), and the title wraps rather than truncating. A ghost or link Button at either end of the group bleeds by its own padding, so its label meets the content edge (the end on the title row, the start once wrapped); filled buttons keep their edge on the line. Direct children only. |
29
31
  | titleAs | "h1" \| "h2" | "h1" | The title's heading element. Keep h1 — the route's one h1. Use h2 only when something above already owns the h1: a shell that renders the route title, or a page showing a PageHeader as an example. |
32
+ | size | "md" \| "lg" | "md" | The title's scale. md: text-heading-2 over a text-body-sm description, for product pages. lg: text-display-lg over a text-body-lg lede capped at the prose measure, with more space between and below, for an editorial page (personal site, marketing page, article index). Beside actions or a back control, a title line taller than the controls lifts by half the difference, so its first line stays centred on them. |
33
+
34
+ ## Variants
35
+
36
+ - **size**: md, lg
30
37
 
31
38
  ## Tokens used
32
39
 
@@ -51,6 +58,14 @@ import { Button, PageHeader } from "@sableui/react"
51
58
  <PageHeader title="Storage credits" description="Fund permanent storage." actions={<Button>Top up</Button>} />
52
59
  ```
53
60
 
61
+ ### Editorial page title (size lg)
62
+
63
+ ```tsx
64
+ import { Button, PageHeader } from "@sableui/react"
65
+
66
+ <PageHeader size="lg" title="Field notes" description="Essays on making things slowly, from a studio by the sea." actions={<Button variant="outline">Subscribe</Button>} />
67
+ ```
68
+
54
69
  ### One per page, inside the region
55
70
 
56
71
  ```tsx