@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.
- package/dist/docs/AGENTS.md +73 -10
- package/dist/docs/{marketing/introduction/getting-started.md → marketing.md} +28 -20
- package/dist/docs/product/components/actions.md +2058 -0
- package/dist/docs/product/components/blockchain.md +3825 -0
- package/dist/docs/product/components/data-display.md +5901 -0
- package/dist/docs/product/components/feedback-and-status.md +4008 -0
- package/dist/docs/product/components/forms-and-inputs.md +10543 -0
- package/dist/docs/product/components/layout.md +3339 -0
- package/dist/docs/product/components/navigation.md +2914 -0
- package/dist/docs/product/components/overlays.md +4917 -0
- package/dist/docs/product/components.md +125 -125
- package/dist/docs/product/foundations.md +4596 -0
- package/dist/docs/product/patterns.md +10129 -0
- package/package.json +1 -1
- package/dist/docs/index.md +0 -145
- package/dist/docs/product/components/accordion.md +0 -489
- package/dist/docs/product/components/address-card.md +0 -147
- package/dist/docs/product/components/agent-logo.md +0 -194
- package/dist/docs/product/components/alert-dialog.md +0 -631
- package/dist/docs/product/components/alert.md +0 -448
- package/dist/docs/product/components/amount-input.md +0 -305
- package/dist/docs/product/components/amount.md +0 -794
- package/dist/docs/product/components/app-shell.md +0 -559
- package/dist/docs/product/components/asset-chip.md +0 -294
- package/dist/docs/product/components/autocomplete.md +0 -620
- package/dist/docs/product/components/avatar.md +0 -321
- package/dist/docs/product/components/badge.md +0 -339
- package/dist/docs/product/components/badged-logo.md +0 -116
- package/dist/docs/product/components/banner.md +0 -379
- package/dist/docs/product/components/bar-chart.md +0 -208
- package/dist/docs/product/components/breadcrumbs.md +0 -380
- package/dist/docs/product/components/button-group.md +0 -286
- package/dist/docs/product/components/button.md +0 -650
- package/dist/docs/product/components/calendar.md +0 -375
- package/dist/docs/product/components/callout.md +0 -96
- package/dist/docs/product/components/checkbox-group.md +0 -521
- package/dist/docs/product/components/checkbox.md +0 -467
- package/dist/docs/product/components/choice-group.md +0 -516
- package/dist/docs/product/components/choicebox.md +0 -641
- package/dist/docs/product/components/code.md +0 -100
- package/dist/docs/product/components/combobox.md +0 -939
- package/dist/docs/product/components/container.md +0 -257
- package/dist/docs/product/components/copy-button.md +0 -642
- package/dist/docs/product/components/date-picker.md +0 -514
- package/dist/docs/product/components/dialog.md +0 -1332
- package/dist/docs/product/components/drawer.md +0 -966
- package/dist/docs/product/components/empty.md +0 -340
- package/dist/docs/product/components/field.md +0 -570
- package/dist/docs/product/components/fieldset.md +0 -398
- package/dist/docs/product/components/frame.md +0 -434
- package/dist/docs/product/components/gauge.md +0 -299
- package/dist/docs/product/components/get-started-visual.md +0 -117
- package/dist/docs/product/components/grid.md +0 -288
- package/dist/docs/product/components/hero-visual.md +0 -155
- package/dist/docs/product/components/hex.md +0 -487
- package/dist/docs/product/components/icon-tile.md +0 -292
- package/dist/docs/product/components/identicon.md +0 -371
- package/dist/docs/product/components/inline.md +0 -233
- package/dist/docs/product/components/inset.md +0 -225
- package/dist/docs/product/components/kbd.md +0 -423
- package/dist/docs/product/components/list-group.md +0 -981
- package/dist/docs/product/components/loading-dots.md +0 -237
- package/dist/docs/product/components/menu.md +0 -934
- package/dist/docs/product/components/native-select.md +0 -204
- package/dist/docs/product/components/network-logo.md +0 -248
- package/dist/docs/product/components/number-field.md +0 -543
- package/dist/docs/product/components/otp-field.md +0 -616
- package/dist/docs/product/components/pagination.md +0 -516
- package/dist/docs/product/components/popover.md +0 -544
- package/dist/docs/product/components/progress.md +0 -388
- package/dist/docs/product/components/qr.md +0 -314
- package/dist/docs/product/components/radio-group.md +0 -528
- package/dist/docs/product/components/secret-value.md +0 -406
- package/dist/docs/product/components/select.md +0 -751
- package/dist/docs/product/components/separator.md +0 -379
- package/dist/docs/product/components/sidebar-menu.md +0 -922
- package/dist/docs/product/components/skeleton.md +0 -517
- package/dist/docs/product/components/slider.md +0 -539
- package/dist/docs/product/components/snippet.md +0 -424
- package/dist/docs/product/components/spinner.md +0 -216
- package/dist/docs/product/components/split-bar.md +0 -139
- package/dist/docs/product/components/split-button.md +0 -464
- package/dist/docs/product/components/stack.md +0 -299
- package/dist/docs/product/components/status-chip.md +0 -226
- package/dist/docs/product/components/status-indicator.md +0 -119
- package/dist/docs/product/components/status-row.md +0 -174
- package/dist/docs/product/components/stepper.md +0 -451
- package/dist/docs/product/components/success-hero.md +0 -157
- package/dist/docs/product/components/surface.md +0 -639
- package/dist/docs/product/components/switch.md +0 -472
- package/dist/docs/product/components/table.md +0 -968
- package/dist/docs/product/components/tabs.md +0 -627
- package/dist/docs/product/components/tempo-logo.md +0 -185
- package/dist/docs/product/components/text-input.md +0 -624
- package/dist/docs/product/components/textarea.md +0 -352
- package/dist/docs/product/components/toast.md +0 -535
- package/dist/docs/product/components/token-logo.md +0 -371
- package/dist/docs/product/components/token.md +0 -247
- package/dist/docs/product/components/tooltip.md +0 -490
- package/dist/docs/product/components/verification-code.md +0 -116
- package/dist/docs/product/components/visual.md +0 -249
- package/dist/docs/product/foundations/accessibility.md +0 -377
- package/dist/docs/product/foundations/agents.md +0 -159
- package/dist/docs/product/foundations/color.md +0 -522
- package/dist/docs/product/foundations/content/tone.md +0 -194
- package/dist/docs/product/foundations/content/voice.md +0 -194
- package/dist/docs/product/foundations/content/writing-style.md +0 -406
- package/dist/docs/product/foundations/iconography.md +0 -282
- package/dist/docs/product/foundations/intent.md +0 -360
- package/dist/docs/product/foundations/layout.md +0 -508
- package/dist/docs/product/foundations/linter.md +0 -523
- package/dist/docs/product/foundations/motion.md +0 -151
- package/dist/docs/product/foundations/radius-and-padding.md +0 -86
- package/dist/docs/product/foundations/typography.md +0 -331
- package/dist/docs/product/introduction/faq.md +0 -133
- package/dist/docs/product/introduction/getting-started.md +0 -377
- package/dist/docs/product/patterns/blockchain-values.md +0 -709
- package/dist/docs/product/patterns/dashboards.md +0 -638
- package/dist/docs/product/patterns/destructive-actions.md +0 -626
- package/dist/docs/product/patterns/empty-states.md +0 -612
- package/dist/docs/product/patterns/errors-and-validation.md +0 -808
- package/dist/docs/product/patterns/feedback-and-status.md +0 -518
- package/dist/docs/product/patterns/forms.md +0 -679
- package/dist/docs/product/patterns/loading.md +0 -630
- package/dist/docs/product/patterns/navigation.md +0 -397
- package/dist/docs/product/patterns/payments.md +0 -765
- package/dist/docs/product/patterns/responsive-layout.md +0 -997
- package/dist/docs/product/patterns/tables-and-lists.md +0 -1170
- package/dist/docs/product/products/tempo-console.md +0 -671
- package/dist/docs/product/products/tempo-performance.md +0 -435
- package/dist/docs/product/products/tempo-wallet.md +0 -438
|
@@ -13,191 +13,191 @@ Components for building Tempo products, grouped by the job each one does.
|
|
|
13
13
|
|
|
14
14
|
Controls that start an action or copy a value.
|
|
15
15
|
|
|
16
|
-
- [Button](components/
|
|
17
|
-
- [ButtonGroup](components/
|
|
18
|
-
- [CopyButton](components/
|
|
19
|
-
- [SplitButton](components/
|
|
16
|
+
- [Button](components/actions.md#button): Triggers an action, such as submitting a form or sending a payment.
|
|
17
|
+
- [ButtonGroup](components/actions.md#buttongroup): Lays out the actions at the foot of a dialog or focused flow.
|
|
18
|
+
- [CopyButton](components/actions.md#copybutton): Copies a value to the clipboard and confirms the copy.
|
|
19
|
+
- [SplitButton](components/actions.md#splitbutton): Pairs a primary action with a menu of alternatives.
|
|
20
20
|
|
|
21
21
|
## Forms and Inputs
|
|
22
22
|
|
|
23
|
-
Controls that collect values, and the parts that label and group them. Wrap each control in a [Field](components/
|
|
24
|
-
|
|
25
|
-
- [AmountInput](components/
|
|
26
|
-
- [Autocomplete](components/
|
|
27
|
-
- [Calendar](components/
|
|
28
|
-
- [Checkbox](components/
|
|
29
|
-
- [CheckboxGroup](components/
|
|
30
|
-
- [Choicebox](components/
|
|
31
|
-
- [ChoiceGroup](components/
|
|
32
|
-
- [Combobox](components/
|
|
33
|
-
- [DatePicker](components/
|
|
34
|
-
- [Field](components/
|
|
35
|
-
- [Fieldset](components/
|
|
36
|
-
- [NativeSelect](components/
|
|
37
|
-
- [NumberField](components/
|
|
38
|
-
- [OtpField](components/
|
|
39
|
-
- [RadioGroup](components/
|
|
40
|
-
- [Select](components/
|
|
41
|
-
- [Slider](components/
|
|
42
|
-
- [Switch](components/
|
|
43
|
-
- [Textarea](components/
|
|
44
|
-
- [TextInput](components/
|
|
23
|
+
Controls that collect values, and the parts that label and group them. Wrap each control in a [Field](components/forms-and-inputs.md#field-1) to link its label, description, and error.
|
|
24
|
+
|
|
25
|
+
- [AmountInput](components/forms-and-inputs.md#amountinput): Accepts a decimal amount, such as a payment or transfer value.
|
|
26
|
+
- [Autocomplete](components/forms-and-inputs.md#autocomplete): A text input that suggests values while people type.
|
|
27
|
+
- [Calendar](components/forms-and-inputs.md#calendar): A month grid for picking one date or a date range.
|
|
28
|
+
- [Checkbox](components/forms-and-inputs.md#checkbox): Turns a single independent option on or off.
|
|
29
|
+
- [CheckboxGroup](components/forms-and-inputs.md#checkboxgroup): Shares one value array across a group of checkboxes.
|
|
30
|
+
- [Choicebox](components/forms-and-inputs.md#choicebox): A selectable tile with an optional icon, title, and description.
|
|
31
|
+
- [ChoiceGroup](components/forms-and-inputs.md#choicegroup): A segmented control for a few mutually exclusive options.
|
|
32
|
+
- [Combobox](components/forms-and-inputs.md#combobox): A text input that filters a list of fixed options while people type.
|
|
33
|
+
- [DatePicker](components/forms-and-inputs.md#datepicker): Shows the selected date and opens a calendar in a popup.
|
|
34
|
+
- [Field](components/forms-and-inputs.md#field-1): Links a label, description, and error message to a control.
|
|
35
|
+
- [Fieldset](components/forms-and-inputs.md#fieldset): Groups related fields under a shared legend.
|
|
36
|
+
- [NativeSelect](components/forms-and-inputs.md#nativeselect): A native select styled as a field, which opens the browser's own picker.
|
|
37
|
+
- [NumberField](components/forms-and-inputs.md#numberfield): A numeric input with increment and decrement buttons.
|
|
38
|
+
- [OtpField](components/forms-and-inputs.md#otpfield): Accepts a one-time passcode, one character per slot.
|
|
39
|
+
- [RadioGroup](components/forms-and-inputs.md#radiogroup): Lets you pick a single option from a short list.
|
|
40
|
+
- [Select](components/forms-and-inputs.md#select): Opens a list of options for choosing one value.
|
|
41
|
+
- [Slider](components/forms-and-inputs.md#slider): Picks a single value or a range by dragging.
|
|
42
|
+
- [Switch](components/forms-and-inputs.md#switch): Toggles a setting that applies immediately.
|
|
43
|
+
- [Textarea](components/forms-and-inputs.md#textarea): A multi-line text field.
|
|
44
|
+
- [TextInput](components/forms-and-inputs.md#textinput): A text field with optional prefix, suffix, and clear button.
|
|
45
45
|
|
|
46
46
|
## Feedback and Status
|
|
47
47
|
|
|
48
48
|
Components that report progress, results, and system state.
|
|
49
49
|
|
|
50
|
-
- [Alert](components/
|
|
51
|
-
- [Banner](components/
|
|
52
|
-
- [Callout](components/
|
|
53
|
-
- [Empty](components/
|
|
54
|
-
- [Gauge](components/
|
|
55
|
-
- [LoadingDots](components/
|
|
56
|
-
- [Progress](components/
|
|
57
|
-
- [Skeleton](components/
|
|
58
|
-
- [Spinner](components/
|
|
59
|
-
- [StatusChip](components/status
|
|
60
|
-
- [StatusIndicator](components/status
|
|
61
|
-
- [StatusRow](components/status
|
|
62
|
-
- [Toast](components/
|
|
50
|
+
- [Alert](components/feedback-and-status.md#alert): Shows an inline message tied to nearby content.
|
|
51
|
+
- [Banner](components/feedback-and-status.md#banner): Shows a full-width message about the system or page.
|
|
52
|
+
- [Callout](components/feedback-and-status.md#callout): Sets a short passage of body text apart in a subtle box.
|
|
53
|
+
- [Empty](components/feedback-and-status.md#empty): Fills a region that has nothing to show yet.
|
|
54
|
+
- [Gauge](components/feedback-and-status.md#gauge): Shows a measurement within a range as a ring.
|
|
55
|
+
- [LoadingDots](components/feedback-and-status.md#loadingdots): Shows three pulsing dots for inline loading.
|
|
56
|
+
- [Progress](components/feedback-and-status.md#progress-1): Shows how far a task has advanced.
|
|
57
|
+
- [Skeleton](components/feedback-and-status.md#skeleton): Holds the place of content while it loads.
|
|
58
|
+
- [Spinner](components/feedback-and-status.md#spinner): Shows that something is loading.
|
|
59
|
+
- [StatusChip](components/feedback-and-status.md#statuschip): Names the status of a payment, an authorization, or a network.
|
|
60
|
+
- [StatusIndicator](components/feedback-and-status.md#statusindicator): Names the status of a system or a service with a dot and a label.
|
|
61
|
+
- [StatusRow](components/feedback-and-status.md#statusrow): Follows the status of one payment or task while it runs.
|
|
62
|
+
- [Toast](components/feedback-and-status.md#toast): Shows a brief notification that dismisses itself.
|
|
63
63
|
|
|
64
64
|
## Overlays
|
|
65
65
|
|
|
66
66
|
Popups that open above the page from a trigger.
|
|
67
67
|
|
|
68
|
-
- [AlertDialog](components/
|
|
69
|
-
- [Dialog](components/
|
|
70
|
-
- [Drawer](components/
|
|
71
|
-
- [Menu](components/
|
|
72
|
-
- [Popover](components/
|
|
73
|
-
- [Tooltip](components/
|
|
68
|
+
- [AlertDialog](components/overlays.md#alertdialog): Asks you to confirm a critical action before it happens.
|
|
69
|
+
- [Dialog](components/overlays.md#dialog): Opens a modal popup over the page.
|
|
70
|
+
- [Drawer](components/overlays.md#drawer): Slides a modal panel in from an edge of the viewport.
|
|
71
|
+
- [Menu](components/overlays.md#menu): Opens a list of actions from a button.
|
|
72
|
+
- [Popover](components/overlays.md#popover): Opens a non-modal popup anchored to a trigger.
|
|
73
|
+
- [Tooltip](components/overlays.md#tooltip): Shows a short label for a control on hover or focus.
|
|
74
74
|
|
|
75
75
|
## Navigation
|
|
76
76
|
|
|
77
77
|
Components that move between pages, views, and steps.
|
|
78
78
|
|
|
79
|
-
- [Breadcrumbs](components/
|
|
80
|
-
- [Pagination](components/
|
|
81
|
-
- [SidebarMenu](components/
|
|
82
|
-
- [Stepper](components/
|
|
83
|
-
- [Tabs](components/
|
|
79
|
+
- [Breadcrumbs](components/navigation.md#breadcrumbs): Shows where the current page sits in the site hierarchy.
|
|
80
|
+
- [Pagination](components/navigation.md#pagination): Moves between pages of a long list.
|
|
81
|
+
- [SidebarMenu](components/navigation.md#sidebarmenu): Vertical navigation for sidebars and drawers.
|
|
82
|
+
- [Stepper](components/navigation.md#stepper): Shows progress through a fixed sequence of steps.
|
|
83
|
+
- [Tabs](components/navigation.md#tabs): Switches between related views.
|
|
84
84
|
|
|
85
85
|
## Layout
|
|
86
86
|
|
|
87
87
|
Primitives that size, space, and arrange content. They carry no meaning, so pair them with semantic elements where structure matters.
|
|
88
88
|
|
|
89
|
-
- [AppShell](components/
|
|
90
|
-
- [Container](components/
|
|
91
|
-
- [Frame](components/
|
|
92
|
-
- [Grid](components/
|
|
93
|
-
- [Inline](components/
|
|
94
|
-
- [Inset](components/
|
|
95
|
-
- [Separator](components/
|
|
96
|
-
- [Stack](components/
|
|
97
|
-
- [Surface](components/
|
|
89
|
+
- [AppShell](components/layout.md#appshell): Places a sticky sidebar beside the main content column.
|
|
90
|
+
- [Container](components/layout.md#container): Centers content at a maximum width.
|
|
91
|
+
- [Frame](components/layout.md#frame): Lays out a header, body, and footer in a column.
|
|
92
|
+
- [Grid](components/layout.md#grid): Lays out children on a responsive grid.
|
|
93
|
+
- [Inline](components/layout.md#inline): Lays out children in a horizontal row.
|
|
94
|
+
- [Inset](components/layout.md#inset): Pads content with spacing tokens.
|
|
95
|
+
- [Separator](components/layout.md#separator): Draws a rule between groups of content.
|
|
96
|
+
- [Stack](components/layout.md#stack): Lays out children in a vertical column.
|
|
97
|
+
- [Surface](components/layout.md#surface): A card container for grouping related content.
|
|
98
98
|
|
|
99
99
|
## Data Display
|
|
100
100
|
|
|
101
101
|
Components that present content and records.
|
|
102
102
|
|
|
103
|
-
- [Accordion](components/
|
|
104
|
-
- [AgentLogo](components/
|
|
105
|
-
- [Avatar](components/
|
|
106
|
-
- [Badge](components/
|
|
107
|
-
- [BarChart](components/
|
|
108
|
-
- [Code](components/
|
|
109
|
-
- [GetStartedVisual](components/
|
|
110
|
-
- [HeroVisual](components/
|
|
111
|
-
- [IconTile](components/
|
|
112
|
-
- [Kbd](components/
|
|
113
|
-
- [ListGroup](components/
|
|
114
|
-
- [Snippet](components/
|
|
115
|
-
- [SplitBar](components/
|
|
116
|
-
- [SuccessHero](components/
|
|
117
|
-
- [Table](components/
|
|
118
|
-
- [TempoLogo](components/
|
|
119
|
-
- [VerificationCode](components/
|
|
120
|
-
- [Visual](components/
|
|
103
|
+
- [Accordion](components/data-display.md#accordion): Stacks collapsible sections that each reveal a labelled panel.
|
|
104
|
+
- [AgentLogo](components/data-display.md#agentlogo): Shows the logo of an AI agent that works with a wallet.
|
|
105
|
+
- [Avatar](components/data-display.md#avatar): Represents a person, contact, or wallet with an image, initials, or an icon.
|
|
106
|
+
- [Badge](components/data-display.md#badge): Labels a status or category in a compact chip.
|
|
107
|
+
- [BarChart](components/data-display.md#barchart): Shows values over time as stacked bars, such as the daily spend of each agent.
|
|
108
|
+
- [Code](components/data-display.md#code): Sets a command, identifier, or value apart inside a sentence.
|
|
109
|
+
- [GetStartedVisual](components/data-display.md#getstartedvisual): Illustrates one step of a get started flow at the top of its card.
|
|
110
|
+
- [HeroVisual](components/data-display.md#herovisual): Shows animated streaks and a title beside the steps of a setup flow.
|
|
111
|
+
- [IconTile](components/data-display.md#icontile): Anchors a centered modal with one icon in a rounded square.
|
|
112
|
+
- [Kbd](components/data-display.md#kbd): Shows a keyboard key or shortcut.
|
|
113
|
+
- [ListGroup](components/data-display.md#listgroup): Stacks rows for details, pickers, checklists, and settings.
|
|
114
|
+
- [Snippet](components/data-display.md#snippet): Shows a command or value with a copy button.
|
|
115
|
+
- [SplitBar](components/data-display.md#splitbar): Splits one total between two parts, with a legend under the bar.
|
|
116
|
+
- [SuccessHero](components/data-display.md#successhero): Confirms that a setup flow finished, on a dark card of animated streaks.
|
|
117
|
+
- [Table](components/data-display.md#table): Displays tabular data in rows and columns.
|
|
118
|
+
- [TempoLogo](components/data-display.md#tempologo): Shows the Tempo brand logo.
|
|
119
|
+
- [VerificationCode](components/data-display.md#verificationcode): Shows a code that a person compares with the one another app shows.
|
|
120
|
+
- [Visual](components/data-display.md#visual): Illustrates the top of an onboarding or feature modal.
|
|
121
121
|
|
|
122
122
|
## Blockchain
|
|
123
123
|
|
|
124
124
|
Components for onchain values such as addresses, amounts, and tokens.
|
|
125
125
|
|
|
126
|
-
- [AddressCard](components/
|
|
127
|
-
- [Amount](components/
|
|
128
|
-
- [AssetChip](components/
|
|
129
|
-
- [BadgedLogo](components/
|
|
130
|
-
- [Hex](components/
|
|
131
|
-
- [Identicon](components/
|
|
132
|
-
- [NetworkLogo](components/
|
|
133
|
-
- [Qr](components/
|
|
134
|
-
- [SecretValue](components/
|
|
135
|
-
- [Token](components/
|
|
136
|
-
- [TokenLogo](components/
|
|
126
|
+
- [AddressCard](components/blockchain.md#addresscard): Shows a wallet address to receive funds, with its QR code and networks.
|
|
127
|
+
- [Amount](components/blockchain.md#amount): Formats a number as money or a token amount.
|
|
128
|
+
- [AssetChip](components/blockchain.md#assetchip): Labels a supported asset or network in a small chip, which can also pick one.
|
|
129
|
+
- [BadgedLogo](components/blockchain.md#badgedlogo): Marks a token or an app with a small badge on the corner of its logo.
|
|
130
|
+
- [Hex](components/blockchain.md#hex): Shows a hex string, such as an address, truncated to fit.
|
|
131
|
+
- [Identicon](components/blockchain.md#identicon): Shows a unique gradient avatar derived from an address.
|
|
132
|
+
- [NetworkLogo](components/blockchain.md#networklogo): Shows the logo of the network a token lives on.
|
|
133
|
+
- [Qr](components/blockchain.md#qr): Renders a value as a QR code.
|
|
134
|
+
- [SecretValue](components/blockchain.md#secretvalue): Masks a secret and adds reveal and copy buttons.
|
|
135
|
+
- [Token](components/blockchain.md#token-1): Shows which token an amount is in, and opens a picker to change it.
|
|
136
|
+
- [TokenLogo](components/blockchain.md#tokenlogo): Shows a token logo by contract address or symbol.
|
|
137
137
|
|
|
138
138
|
## Choosing a Component
|
|
139
139
|
|
|
140
140
|
### Choosing One Option
|
|
141
141
|
|
|
142
|
-
* **[RadioGroup](components/
|
|
143
|
-
* **[ChoiceGroup](components/
|
|
144
|
-
* **[Choicebox](components/
|
|
145
|
-
* **[Select](components/
|
|
146
|
-
* **[Combobox](components/
|
|
147
|
-
* **[Autocomplete](components/
|
|
142
|
+
* **[RadioGroup](components/forms-and-inputs.md#radiogroup):** Two to five options, all visible at once.
|
|
143
|
+
* **[ChoiceGroup](components/forms-and-inputs.md#choicegroup):** Two to four short options that switch a view or mode.
|
|
144
|
+
* **[Choicebox](components/forms-and-inputs.md#choicebox):** A few options that each need an icon or description.
|
|
145
|
+
* **[Select](components/forms-and-inputs.md#select):** Many options, or limited space.
|
|
146
|
+
* **[Combobox](components/forms-and-inputs.md#combobox):** A long list to filter by typing.
|
|
147
|
+
* **[Autocomplete](components/forms-and-inputs.md#autocomplete):** Free text with suggested values.
|
|
148
148
|
|
|
149
149
|
### On and Off
|
|
150
150
|
|
|
151
|
-
* **[Switch](components/
|
|
152
|
-
* **[Checkbox](components/
|
|
151
|
+
* **[Switch](components/forms-and-inputs.md#switch):** A setting that applies the moment you flip it.
|
|
152
|
+
* **[Checkbox](components/forms-and-inputs.md#checkbox):** A choice that applies on form submit, or agreement to terms.
|
|
153
153
|
|
|
154
154
|
### Messages
|
|
155
155
|
|
|
156
|
-
* **[Banner](components/
|
|
157
|
-
* **[Alert](components/
|
|
158
|
-
* **[Toast](components/
|
|
159
|
-
* **[AlertDialog](components/
|
|
156
|
+
* **[Banner](components/feedback-and-status.md#banner):** A message about the whole product or page, such as an outage.
|
|
157
|
+
* **[Alert](components/feedback-and-status.md#alert):** A message about a specific section or field.
|
|
158
|
+
* **[Toast](components/feedback-and-status.md#toast):** Confirms that an action finished.
|
|
159
|
+
* **[AlertDialog](components/overlays.md#alertdialog):** An action that needs a decision before it continues.
|
|
160
160
|
|
|
161
161
|
### Loading
|
|
162
162
|
|
|
163
|
-
* **[Skeleton](components/
|
|
164
|
-
* **[Progress](components/
|
|
165
|
-
* **[Spinner](components/
|
|
166
|
-
* **[LoadingDots](components/
|
|
163
|
+
* **[Skeleton](components/feedback-and-status.md#skeleton):** Content with a known shape.
|
|
164
|
+
* **[Progress](components/feedback-and-status.md#progress-1):** A task with a measurable amount of work.
|
|
165
|
+
* **[Spinner](components/feedback-and-status.md#spinner):** A region or control that is busy for an unknown time.
|
|
166
|
+
* **[LoadingDots](components/feedback-and-status.md#loadingdots):** A short wait inside a line of text.
|
|
167
167
|
|
|
168
168
|
### Popups
|
|
169
169
|
|
|
170
|
-
* **[Dialog](components/
|
|
171
|
-
* **[Drawer](components/
|
|
172
|
-
* **[Menu](components/
|
|
173
|
-
* **[Popover](components/
|
|
174
|
-
* **[Tooltip](components/
|
|
170
|
+
* **[Dialog](components/overlays.md#dialog):** A focused task that blocks the page.
|
|
171
|
+
* **[Drawer](components/overlays.md#drawer):** A long form or details panel that keeps page context visible.
|
|
172
|
+
* **[Menu](components/overlays.md#menu):** A list of actions.
|
|
173
|
+
* **[Popover](components/overlays.md#popover):** Interactive content anchored to a trigger, without a block on the page.
|
|
174
|
+
* **[Tooltip](components/overlays.md#tooltip):** A label for an icon button.
|
|
175
175
|
|
|
176
176
|
### Showing a Status
|
|
177
177
|
|
|
178
|
-
* **[Table](components/
|
|
179
|
-
* **[StatusChip](components/status
|
|
180
|
-
* **[StatusIndicator](components/status
|
|
181
|
-
* **[StatusRow](components/status
|
|
182
|
-
* **[Badge](components/
|
|
178
|
+
* **[Table](components/data-display.md#table) cell `status`:** A status in a table row, as a colored word such as Failed.
|
|
179
|
+
* **[StatusChip](components/feedback-and-status.md#statuschip):** The status of a payment, an authorization, or a network, at the end of a row or beside a title.
|
|
180
|
+
* **[StatusIndicator](components/feedback-and-status.md#statusindicator):** The live state of a system, a service, or a connection, such as Degraded.
|
|
181
|
+
* **[StatusRow](components/feedback-and-status.md#statusrow):** One running task that a person follows until it finishes.
|
|
182
|
+
* **[Badge](components/data-display.md#badge):** A category or an attribute, such as Testnet or Nightly.
|
|
183
183
|
|
|
184
184
|
### Lists of Records
|
|
185
185
|
|
|
186
|
-
* **[Table](components/
|
|
187
|
-
* **[ListGroup](components/
|
|
188
|
-
* **[Surface](components/
|
|
186
|
+
* **[Table](components/data-display.md#table):** Many records with the same fields, such as payouts or team members, to compare by column.
|
|
187
|
+
* **[ListGroup](components/data-display.md#listgroup):** The fields of one record, a short list to pick from or open, or table rows below 640px.
|
|
188
|
+
* **[Surface](components/layout.md#surface) in a [Grid](components/layout.md#grid):** A few similar items that each stand alone, such as metric tiles. Don't make a card per record.
|
|
189
189
|
|
|
190
190
|
### Identifiers
|
|
191
191
|
|
|
192
|
-
* **[Hex](components/
|
|
193
|
-
* **[Table](components/
|
|
194
|
-
* **[Snippet](components/
|
|
195
|
-
* **[SecretValue](components/
|
|
192
|
+
* **[Hex](components/blockchain.md#hex):** An address or a hash in a row, a card, or a details view. It truncates in the middle to fit its container, down to the prefix and one character on each side, and overflows a narrower one.
|
|
193
|
+
* **[Table](components/data-display.md#table) cell `mono`:** An address or a hash in a table column, shortened with `formatHex` to `0x4f2a…91c3`. Link the row to a details view with a Hex.
|
|
194
|
+
* **[Snippet](components/data-display.md#snippet):** A URL, a command, or another value that isn't hex.
|
|
195
|
+
* **[SecretValue](components/blockchain.md#secretvalue):** A private key or another secret, hidden until a reveal.
|
|
196
196
|
|
|
197
|
-
Set `copy` on a Hex wherever people need the full value. [Building From Intent](foundations
|
|
197
|
+
Set `copy` on a Hex wherever people need the full value. [Building From Intent](foundations.md#building-from-intent) shows how to choose by the job of the content.
|
|
198
198
|
|
|
199
199
|
### Copying Values
|
|
200
200
|
|
|
201
|
-
* **[Snippet](components/
|
|
202
|
-
* **[CopyButton](components/
|
|
203
|
-
* **[SecretValue](components/
|
|
201
|
+
* **[Snippet](components/data-display.md#snippet):** A command or value with its own copy button.
|
|
202
|
+
* **[CopyButton](components/actions.md#copybutton):** Copy beside content that you lay out yourself.
|
|
203
|
+
* **[SecretValue](components/blockchain.md#secretvalue):** A value that stays hidden until a reveal.
|