@tempoxyz/ds 0.3.14 → 0.3.15

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 (131) hide show
  1. package/dist/docs/AGENTS.md +73 -10
  2. package/dist/docs/{marketing/introduction/getting-started.md → marketing.md} +28 -20
  3. package/dist/docs/product/components/actions.md +2058 -0
  4. package/dist/docs/product/components/blockchain.md +3825 -0
  5. package/dist/docs/product/components/data-display.md +5901 -0
  6. package/dist/docs/product/components/feedback-and-status.md +4008 -0
  7. package/dist/docs/product/components/forms-and-inputs.md +10543 -0
  8. package/dist/docs/product/components/layout.md +3339 -0
  9. package/dist/docs/product/components/navigation.md +2914 -0
  10. package/dist/docs/product/components/overlays.md +4917 -0
  11. package/dist/docs/product/components.md +125 -125
  12. package/dist/docs/product/foundations.md +4596 -0
  13. package/dist/docs/product/patterns.md +10129 -0
  14. package/package.json +1 -1
  15. package/dist/docs/index.md +0 -145
  16. package/dist/docs/product/components/accordion.md +0 -489
  17. package/dist/docs/product/components/address-card.md +0 -147
  18. package/dist/docs/product/components/agent-logo.md +0 -194
  19. package/dist/docs/product/components/alert-dialog.md +0 -631
  20. package/dist/docs/product/components/alert.md +0 -448
  21. package/dist/docs/product/components/amount-input.md +0 -305
  22. package/dist/docs/product/components/amount.md +0 -794
  23. package/dist/docs/product/components/app-shell.md +0 -559
  24. package/dist/docs/product/components/asset-chip.md +0 -294
  25. package/dist/docs/product/components/autocomplete.md +0 -620
  26. package/dist/docs/product/components/avatar.md +0 -321
  27. package/dist/docs/product/components/badge.md +0 -339
  28. package/dist/docs/product/components/badged-logo.md +0 -116
  29. package/dist/docs/product/components/banner.md +0 -379
  30. package/dist/docs/product/components/bar-chart.md +0 -208
  31. package/dist/docs/product/components/breadcrumbs.md +0 -380
  32. package/dist/docs/product/components/button-group.md +0 -286
  33. package/dist/docs/product/components/button.md +0 -650
  34. package/dist/docs/product/components/calendar.md +0 -375
  35. package/dist/docs/product/components/callout.md +0 -96
  36. package/dist/docs/product/components/checkbox-group.md +0 -521
  37. package/dist/docs/product/components/checkbox.md +0 -467
  38. package/dist/docs/product/components/choice-group.md +0 -516
  39. package/dist/docs/product/components/choicebox.md +0 -641
  40. package/dist/docs/product/components/code.md +0 -100
  41. package/dist/docs/product/components/combobox.md +0 -939
  42. package/dist/docs/product/components/container.md +0 -257
  43. package/dist/docs/product/components/copy-button.md +0 -642
  44. package/dist/docs/product/components/date-picker.md +0 -514
  45. package/dist/docs/product/components/dialog.md +0 -1332
  46. package/dist/docs/product/components/drawer.md +0 -966
  47. package/dist/docs/product/components/empty.md +0 -340
  48. package/dist/docs/product/components/field.md +0 -570
  49. package/dist/docs/product/components/fieldset.md +0 -398
  50. package/dist/docs/product/components/frame.md +0 -434
  51. package/dist/docs/product/components/gauge.md +0 -299
  52. package/dist/docs/product/components/get-started-visual.md +0 -117
  53. package/dist/docs/product/components/grid.md +0 -288
  54. package/dist/docs/product/components/hero-visual.md +0 -155
  55. package/dist/docs/product/components/hex.md +0 -487
  56. package/dist/docs/product/components/icon-tile.md +0 -292
  57. package/dist/docs/product/components/identicon.md +0 -371
  58. package/dist/docs/product/components/inline.md +0 -233
  59. package/dist/docs/product/components/inset.md +0 -225
  60. package/dist/docs/product/components/kbd.md +0 -423
  61. package/dist/docs/product/components/list-group.md +0 -981
  62. package/dist/docs/product/components/loading-dots.md +0 -237
  63. package/dist/docs/product/components/menu.md +0 -934
  64. package/dist/docs/product/components/native-select.md +0 -204
  65. package/dist/docs/product/components/network-logo.md +0 -248
  66. package/dist/docs/product/components/number-field.md +0 -543
  67. package/dist/docs/product/components/otp-field.md +0 -616
  68. package/dist/docs/product/components/pagination.md +0 -516
  69. package/dist/docs/product/components/popover.md +0 -544
  70. package/dist/docs/product/components/progress.md +0 -388
  71. package/dist/docs/product/components/qr.md +0 -314
  72. package/dist/docs/product/components/radio-group.md +0 -528
  73. package/dist/docs/product/components/secret-value.md +0 -406
  74. package/dist/docs/product/components/select.md +0 -751
  75. package/dist/docs/product/components/separator.md +0 -379
  76. package/dist/docs/product/components/sidebar-menu.md +0 -922
  77. package/dist/docs/product/components/skeleton.md +0 -517
  78. package/dist/docs/product/components/slider.md +0 -539
  79. package/dist/docs/product/components/snippet.md +0 -424
  80. package/dist/docs/product/components/spinner.md +0 -216
  81. package/dist/docs/product/components/split-bar.md +0 -139
  82. package/dist/docs/product/components/split-button.md +0 -464
  83. package/dist/docs/product/components/stack.md +0 -299
  84. package/dist/docs/product/components/status-chip.md +0 -226
  85. package/dist/docs/product/components/status-indicator.md +0 -119
  86. package/dist/docs/product/components/status-row.md +0 -174
  87. package/dist/docs/product/components/stepper.md +0 -451
  88. package/dist/docs/product/components/success-hero.md +0 -157
  89. package/dist/docs/product/components/surface.md +0 -639
  90. package/dist/docs/product/components/switch.md +0 -472
  91. package/dist/docs/product/components/table.md +0 -968
  92. package/dist/docs/product/components/tabs.md +0 -627
  93. package/dist/docs/product/components/tempo-logo.md +0 -185
  94. package/dist/docs/product/components/text-input.md +0 -624
  95. package/dist/docs/product/components/textarea.md +0 -352
  96. package/dist/docs/product/components/toast.md +0 -535
  97. package/dist/docs/product/components/token-logo.md +0 -371
  98. package/dist/docs/product/components/token.md +0 -247
  99. package/dist/docs/product/components/tooltip.md +0 -490
  100. package/dist/docs/product/components/verification-code.md +0 -116
  101. package/dist/docs/product/components/visual.md +0 -249
  102. package/dist/docs/product/foundations/accessibility.md +0 -377
  103. package/dist/docs/product/foundations/agents.md +0 -159
  104. package/dist/docs/product/foundations/color.md +0 -522
  105. package/dist/docs/product/foundations/content/tone.md +0 -194
  106. package/dist/docs/product/foundations/content/voice.md +0 -194
  107. package/dist/docs/product/foundations/content/writing-style.md +0 -406
  108. package/dist/docs/product/foundations/iconography.md +0 -282
  109. package/dist/docs/product/foundations/intent.md +0 -360
  110. package/dist/docs/product/foundations/layout.md +0 -508
  111. package/dist/docs/product/foundations/linter.md +0 -523
  112. package/dist/docs/product/foundations/motion.md +0 -151
  113. package/dist/docs/product/foundations/radius-and-padding.md +0 -86
  114. package/dist/docs/product/foundations/typography.md +0 -331
  115. package/dist/docs/product/introduction/faq.md +0 -133
  116. package/dist/docs/product/introduction/getting-started.md +0 -377
  117. package/dist/docs/product/patterns/blockchain-values.md +0 -709
  118. package/dist/docs/product/patterns/dashboards.md +0 -638
  119. package/dist/docs/product/patterns/destructive-actions.md +0 -626
  120. package/dist/docs/product/patterns/empty-states.md +0 -612
  121. package/dist/docs/product/patterns/errors-and-validation.md +0 -808
  122. package/dist/docs/product/patterns/feedback-and-status.md +0 -518
  123. package/dist/docs/product/patterns/forms.md +0 -679
  124. package/dist/docs/product/patterns/loading.md +0 -630
  125. package/dist/docs/product/patterns/navigation.md +0 -397
  126. package/dist/docs/product/patterns/payments.md +0 -765
  127. package/dist/docs/product/patterns/responsive-layout.md +0 -997
  128. package/dist/docs/product/patterns/tables-and-lists.md +0 -1170
  129. package/dist/docs/product/products/tempo-console.md +0 -671
  130. package/dist/docs/product/products/tempo-performance.md +0 -435
  131. package/dist/docs/product/products/tempo-wallet.md +0 -438
@@ -1,375 +0,0 @@
1
- # Calendar
2
-
3
- A month grid for picking one date or a date range.
4
-
5
- [View source and API](https://github.com/tempoxyz/ds/blob/main/src/web/components/Calendar.tsx)
6
-
7
- ## Overview
8
-
9
- Shows one month at a time. The month buttons page through months, and each day is a button.
10
-
11
- ## Examples
12
-
13
- ### Basic
14
-
15
- ```tsx
16
- import { Calendar } from '@tempoxyz/ds'
17
-
18
- export function Demo() {
19
- return <Calendar defaultValue={new Date()} />
20
- }
21
- ```
22
-
23
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Calendar/Basic.tsx)
24
-
25
- ### Mode
26
-
27
- Set `mode="range"` to select a `{ from, to }` range. The default is `single`.
28
-
29
- ```tsx
30
- import { Calendar } from '@tempoxyz/ds'
31
- import { useState } from 'react'
32
-
33
- export function Demo() {
34
- const [range, setRange] = useState<Calendar.Range | null>(null)
35
-
36
- return <Calendar mode="range" onValueChange={setRange} value={range} />
37
- }
38
- ```
39
-
40
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Calendar/Mode.tsx)
41
-
42
- ### Disabled Dates
43
-
44
- Set `min`, `max`, or `isDateDisabled` to mark unavailable days.
45
-
46
- ```tsx
47
- import { Calendar } from '@tempoxyz/ds'
48
-
49
- export function Demo() {
50
- const today = new Date()
51
-
52
- return (
53
- <Calendar
54
- isDateDisabled={(date) => date.getDay() === 0}
55
- max={new Date(today.getFullYear(), today.getMonth() + 1, 20)}
56
- min={new Date(today.getFullYear(), today.getMonth() - 1, 5)}
57
- />
58
- )
59
- }
60
- ```
61
-
62
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Calendar/DisabledDates.tsx)
63
-
64
- ### Locale
65
-
66
- Set `locale` to format the month and weekdays. The default is the browser's locale.
67
-
68
- ```tsx
69
- import { Calendar } from '@tempoxyz/ds'
70
-
71
- export function Demo() {
72
- return <Calendar locale="de-DE" />
73
- }
74
- ```
75
-
76
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Calendar/Locale.tsx)
77
-
78
- ## Anatomy
79
-
80
- Import the component and assemble its parts.
81
-
82
- ```tsx
83
- import { Calendar } from '@tempoxyz/ds'
84
-
85
- <Calendar />
86
- ```
87
-
88
- ## Guidelines
89
-
90
- ### When to Use
91
-
92
- * Pick a date near today with the grid always on screen, such as a start date in a side panel.
93
- * Pick a date range with `mode="range"`, such as the period for an activity export.
94
- * Show which days are available, such as business days for a bank withdrawal.
95
-
96
- ### When Not to Use
97
-
98
- * If the date is one field in a form, use [DatePicker](date-picker.md). It opens the same calendar in a popup.
99
- * Use [TextInput](text-input.md) for dates far from today, such as a date of birth.
100
- * Use [ChoiceGroup](choice-group.md) for preset ranges, such as 24H, 7D, and 30D above a chart.
101
-
102
- ### Explain Unavailable Days
103
-
104
- Set `min`, `max`, or `isDateDisabled`, and state the rule in text beside the calendar, not in a tooltip on each day. The month buttons can't page past `min` or `max`.
105
-
106
- **Do:** State the rule below the calendar, such as Bank withdrawals settle on business days.
107
-
108
- ```tsx
109
- /**
110
- * Do example for "Explain Unavailable Days" on the Calendar page.
111
- * State the rule below the calendar, such as Bank withdrawals settle on business days.
112
- * @module
113
- */
114
- import { Calendar, style } from '@tempoxyz/ds'
115
-
116
- /** Renders the static preview, which the guideline card shows inert. */
117
- export function Demo() {
118
- return (
119
- <div {...styles.stack()}>
120
- <Calendar
121
- defaultMonth={new Date(2026, 9, 1)}
122
- isDateDisabled={(date) => date.getDay() === 0 || date.getDay() === 6}
123
- />
124
- <span {...styles.note()}>Bank withdrawals settle on business days.</span>
125
- </div>
126
- )
127
- }
128
-
129
- namespace styles {
130
- export const stack = style({ display: 'flex', flexDirection: 'column', rowGap: '12' })
131
-
132
- export const note = style({ color: 'content.secondary', typography: 'body.b3' })
133
- }
134
- ```
135
-
136
- **Don't:** Disable days without saying why.
137
-
138
- ```tsx
139
- /**
140
- * Don't example for "Explain Unavailable Days" on the Calendar page.
141
- * Don't disable days without saying why.
142
- * @module
143
- */
144
- import { Calendar } from '@tempoxyz/ds'
145
-
146
- /** Renders the static preview, which the guideline card shows inert. */
147
- export function Demo() {
148
- return (
149
- <Calendar
150
- defaultMonth={new Date(2026, 9, 1)}
151
- isDateDisabled={(date) => date.getDay() === 0 || date.getDay() === 6}
152
- />
153
- )
154
- }
155
- ```
156
-
157
- ### Show a Range in Text Too
158
-
159
- In range mode, `onValueChange` runs on every press: `{ from }` after the first, `{ from, to }` after the second. Apply a filter only after `to` is set.
160
-
161
- **Do:** Show the selected range as text, such as Oct 1 to 14, 2026.
162
-
163
- ```tsx
164
- /**
165
- * Do example for "Show a Range in Text Too" on the Calendar page.
166
- * Show the selected range as text, such as Oct 1 to 14, 2026.
167
- * @module
168
- */
169
- import { Calendar, style } from '@tempoxyz/ds'
170
-
171
- /** Renders the static preview, which the guideline card shows inert. */
172
- export function Demo() {
173
- return (
174
- <div {...styles.stack()}>
175
- <span {...styles.range()}>Oct 1 to 14, 2026</span>
176
- <Calendar
177
- defaultValue={{ from: new Date(2026, 9, 1), to: new Date(2026, 9, 14) }}
178
- mode="range"
179
- />
180
- </div>
181
- )
182
- }
183
-
184
- namespace styles {
185
- export const stack = style({ display: 'flex', flexDirection: 'column', rowGap: '12' })
186
-
187
- export const range = style({ color: 'content.primary', typography: 'body.b2Strong' })
188
- }
189
- ```
190
-
191
- **Don't:** Rely on the highlighted days alone to show the range.
192
-
193
- ```tsx
194
- /**
195
- * Don't example for "Show a Range in Text Too" on the Calendar page.
196
- * Don't rely on the highlighted days alone to show the range.
197
- * @module
198
- */
199
- import { Calendar } from '@tempoxyz/ds'
200
-
201
- /** Renders the static preview, which the guideline card shows inert. */
202
- export function Demo() {
203
- return (
204
- <Calendar
205
- defaultValue={{ from: new Date(2026, 9, 1), to: new Date(2026, 9, 14) }}
206
- mode="range"
207
- />
208
- )
209
- }
210
- ```
211
-
212
- ### Start on the Month of the Task
213
-
214
- `defaultMonth` falls back to the selected day's month, then the current month. Set it to the month of the task, such as the start of a statement period. To sync the page with a typed [TextInput](text-input.md), control it with `month` and `onMonthChange`.
215
-
216
- **Do:** Open on the month the task is about.
217
-
218
- ```tsx
219
- /**
220
- * Do example for "Start on the Month of the Task" on the Calendar page.
221
- * Open on the month the task is about.
222
- * @module
223
- */
224
- import { Calendar, style } from '@tempoxyz/ds'
225
-
226
- /** Renders the static preview, which the guideline card shows inert. */
227
- export function Demo() {
228
- return (
229
- <div {...styles.stack()}>
230
- <span {...styles.label()}>Start of the September statement</span>
231
- <Calendar defaultMonth={new Date(2026, 8, 1)} />
232
- </div>
233
- )
234
- }
235
-
236
- namespace styles {
237
- export const stack = style({ display: 'flex', flexDirection: 'column', rowGap: '12' })
238
-
239
- export const label = style({ color: 'content.primary', typography: 'body.b2Strong' })
240
- }
241
- ```
242
-
243
- **Don't:** Open on the current month when the task is about another one.
244
-
245
- ```tsx
246
- /**
247
- * Don't example for "Start on the Month of the Task" on the Calendar page.
248
- * Don't open on the current month when the task is about another one.
249
- * @module
250
- */
251
- import { Calendar, style } from '@tempoxyz/ds'
252
-
253
- /** Renders the static preview, which the guideline card shows inert. */
254
- export function Demo() {
255
- return (
256
- <div {...styles.stack()}>
257
- <span {...styles.label()}>Start of the September statement</span>
258
- <Calendar defaultMonth={new Date(2026, 9, 1)} />
259
- </div>
260
- )
261
- }
262
-
263
- namespace styles {
264
- export const stack = style({ display: 'flex', flexDirection: 'column', rowGap: '12' })
265
-
266
- export const label = style({ color: 'content.primary', typography: 'body.b2Strong' })
267
- }
268
- ```
269
-
270
- ### Follow the Locale
271
-
272
- `locale` defaults to the browser's locale, and `weekStartsOn` to that locale's first weekday. Leave both unset unless the product uses a fixed locale. The month button names default to English, so translate them through `labels`.
273
-
274
- **Do:** Let the locale set the first weekday, and translate `labels`.
275
-
276
- ```tsx
277
- /**
278
- * Do example for "Follow the Locale" on the Calendar page.
279
- * Let the locale set the first weekday, and translate `labels`.
280
- * @module
281
- */
282
- import { Calendar } from '@tempoxyz/ds'
283
-
284
- /** Renders the static preview, which the guideline card shows inert. */
285
- export function Demo() {
286
- return (
287
- <Calendar
288
- defaultMonth={new Date(2026, 9, 1)}
289
- labels={{ next: 'Nächster Monat', previous: 'Vorheriger Monat' }}
290
- locale="de-DE"
291
- />
292
- )
293
- }
294
- ```
295
-
296
- **Don't:** Override `weekStartsOn` against the locale, such as Sunday first in German.
297
-
298
- ```tsx
299
- /**
300
- * Don't example for "Follow the Locale" on the Calendar page.
301
- * Don't override `weekStartsOn` against the locale, such as Sunday first in German.
302
- * @module
303
- */
304
- import { Calendar } from '@tempoxyz/ds'
305
-
306
- /** Renders the static preview, which the guideline card shows inert. */
307
- export function Demo() {
308
- return (
309
- <Calendar
310
- defaultMonth={new Date(2026, 9, 1)}
311
- labels={{ next: 'Nächster Monat', previous: 'Vorheriger Monat' }}
312
- locale="de-DE"
313
- weekStartsOn={0}
314
- />
315
- )
316
- }
317
- ```
318
-
319
- ## Content
320
-
321
- If a date maps to a time, such as a statement cutoff, name the time zone, such as UTC.
322
-
323
- ## Accessibility
324
-
325
- Follows the [WAI-ARIA grid pattern](https://www.w3.org/WAI/ARIA/apg/patterns/grid/), as in the [date picker dialog example](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/datepicker-dialog/).
326
-
327
- ### Semantics
328
-
329
- * **Month Grid (grid):** A table labelled by the month heading.
330
- * **Weeks and Weekdays (gridcell):** Weekday names are column headers, and each week is a row of day cells.
331
- * **Days (button):** Named with the full localized date, such as "Tuesday, October 20, 2026".
332
- * **Today and Selection (aria-selected):** Today is marked as the current date. Selected days, including every day in a range, are marked.
333
- * **Unavailable Days (aria-disabled):** Days outside the allowed range stay focusable and announced.
334
- * **Month Buttons:** Named "Previous month" and "Next month". Translate them with `labels`.
335
-
336
- ### Keyboard
337
-
338
- * **Move into the Calendar (Tab):** Moves focus to the month buttons, then to one day in the grid.
339
- * **Next or Previous Day (Right Arrow and Left Arrow):** Moves focus to the next or previous day.
340
- * **Next or Previous Week (Down Arrow and Up Arrow):** Moves focus to the same day in the next or previous week.
341
- * **First or Last Day of the Week (Home and End):** Moves focus to the first or last day of the week.
342
- * **Next or Previous Month (Page Down and Page Up):** Moves focus to the same day in the next or previous month.
343
- * **Next or Previous Year (Shift+Page Down or Page Up):** Moves focus to the same day in the next or previous year.
344
- * **Select the Focused Day (Enter or Space):** Selects the focused day. In `range` mode, the first press sets the start, the second the end.
345
-
346
- ### Focus
347
-
348
- Focus starts on the selected day or today. Moving past the shown month turns the page, and focus stops at `min` and `max`.
349
-
350
- ### Announcements
351
-
352
- Turning the page announces the new month in a polite live region.
353
-
354
- ### Your Responsibilities
355
-
356
- * **Localize Labels (labels):** Translate the month buttons. Set `locale` to match the page language.
357
- * **Explain Unavailable Days (isDateDisabled):** Explain the rule in nearby text, such as "Weekends are unavailable".
358
-
359
- ## Related
360
-
361
- [DatePicker](date-picker.md)
362
-
363
- Use for a date field in a form.
364
-
365
- [TextInput](text-input.md)
366
-
367
- Use for typed dates.
368
-
369
- [ChoiceGroup](choice-group.md)
370
-
371
- Use for preset ranges.
372
-
373
- [Field](field.md)
374
-
375
- Use for labelling the date and its constraints.
@@ -1,96 +0,0 @@
1
- # Callout
2
-
3
- Sets a short passage of body text apart in a subtle box.
4
-
5
- [View source and API](https://github.com/tempoxyz/ds/blob/main/src/web/components/Callout.tsx)
6
-
7
- Figma: [Callout](https://www.figma.com/design/yE96kcymnNR88PJp6G1sPs?node-id=3506-2664)
8
-
9
- ## Overview
10
-
11
- A callout renders body text in a subtle box, padded 24px above and below and 32px at the sides. It sets a summary or an aside apart from the text around it, and adds no role or announcement.
12
-
13
- ## Examples
14
-
15
- ### Basic
16
-
17
- ```tsx
18
- import { Callout } from '@tempoxyz/ds'
19
-
20
- export function Demo() {
21
- return (
22
- <Callout>
23
- Stablecoin payments move fiat-referenced digital assets over blockchain networks. The onchain
24
- transfer is only one part of the end-to-end payment.
25
- </Callout>
26
- )
27
- }
28
- ```
29
-
30
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Callout/Basic.tsx)
31
-
32
- ## Anatomy
33
-
34
- Import the component and assemble its parts.
35
-
36
- ```tsx
37
- import { Callout } from '@tempoxyz/ds'
38
-
39
- <Callout />
40
- ```
41
-
42
- ## Guidelines
43
-
44
- ### When to Use
45
-
46
- * Set a summary, a definition, or an aside apart from the body of an article or a docs page.
47
-
48
- ### When Not to Use
49
-
50
- * Use an [Alert](alert.md) for a message about a status or an outcome.
51
- * Use a [Banner](banner.md) for a message about the whole page or product.
52
- * Use a [Snippet](snippet.md) for code that people copy.
53
-
54
- ### Keep the Passage Optional
55
-
56
- **Do:** Use it for context that a reader can skip without missing a step.
57
-
58
- ```tsx
59
- <Callout style={{ width: 360 }}>
60
- Tempo settles a payment in under a second, with fees paid in stablecoins.
61
- </Callout>
62
- ```
63
-
64
- **Don't:** Use it for an error or a warning. Use an Alert instead.
65
-
66
- ```tsx
67
- <Callout style={{ width: 360 }}>Your payment failed. Check the address and try again.</Callout>
68
- ```
69
-
70
- ### Keep One Callout per Section
71
-
72
- * **One Passage (1):** Sets one passage apart, so the reader notices it among the body text.
73
- * **Short Text (3 lines):** Holds a few lines at most. Move a longer passage into the body text.
74
-
75
- ## Content
76
-
77
- * Write complete sentences in the same voice as the text around the callout.
78
- * Keep it to one idea in two or three lines.
79
-
80
- ## Accessibility
81
-
82
- A callout renders a `<div>` with no role, so screen readers read its text in place.
83
-
84
- * **Root (div):** Reads its text in place, as part of the surrounding content, with no role.
85
- * **Landmark (role):** If the callout is an aside, set `role="note"` and an `aria-label` that names it.
86
- * **Contrast (4.5:1):** Renders primary text on the subtle fill, above 4.5:1 in both color schemes.
87
-
88
- ## Related
89
-
90
- [Alert](alert.md)
91
-
92
- Use for a message about a status or an outcome.
93
-
94
- [Banner](banner.md)
95
-
96
- Use for a message about the whole page.