Skip to content

The open alternative to Salesforce, designed for AI.

12.5 KB
Raw Blame

Retained UI label ownership

This covers production exports under components, primitives, and icons, including the Dropdown compound API.

Surface Text ownership
Callout title, description, icon, and action nodes, plus closeLabel (default Close). The optional onDismiss requests caller-owned visibility changes.
ListItem Children, description, action slots, native accessible attributes, and shortcutJoinLabel (default then).
ListItemButton Children, description, native accessible attributes, and shortcutJoinLabel (default then). Independent actions remain sibling controls.
Dropdown Children name actions, options, titles, sections, empty states, and loading states. Back children default to Back. Search accepts native placeholder and accessible attributes. Close requires a caller-supplied accessible label and accepts native aria-labelledby. Item parts pass shortcutJoinLabel to ListItem.
CurrencyPicker Caller-owned catalogue, option content, selected content, placeholders, and trigger and popup names. searchLabel defaults to Search; native searchProps can override its attributes. emptyLabel defaults to No results. The listbox inherits the registered Dropdown title or trigger name; listLabel names only that selection listbox. Native Options accessible labels stay on its own wrapper div.
Button, MainButton, LightButton Children and native accessible attributes. Applications compose upcoming-feature labels with Badge. Loading preserves the supplied name and marks the button busy; its spinner is decorative. Button hints use the shared Shortcut presentation and remain decorative. shortcutJoinLabel supplies the sequence join label.
IconButton and LightIconButton Caller-supplied accessible label and optional tooltip. Native aria-labelledby remains available and takes precedence.
CountPager Caller-owned positionText, previousLabel, nextLabel, and native group names. Position text is announced politely when it changes. The caller formats counts, supplies empty-state text, and owns translations.
ReactionButton Caller-supplied emoji, count formatting, accessible name, and optional native title or composed Tooltip content. The emoji and count are decorative; pressed supplies the accessible selection state.
DatePicker Caller-owned group name, default month/year selector labels, previous/next labels, default-header locale, and optional weekday labels. The shared react-datepicker engine owns calendar markup, day labels, and current-day behavior. Product adapters own selected values, viewed months, custom headers, timezone conversion, relative-range computation, and popup/focus coordination.
SearchInput Caller-owned placeholder, native accessible name and action labels. Referenced labels take precedence over explicit labels and placeholder fallback.
CountrySelect Root owns caller-supplied country labels and noCountryLabel (default No country). Trigger accepts label, native accessible names, and custom children. Options owns searchLabel (default Search) and noResultsLabel (default No results). The shorthand exposes the same labels. Applications own translations, stable identifiers, and persistence conversions.
PhoneCountryPicker Callers supply country labels and the trigger name. The selected label describes the trigger; the popup uses its trigger name unless named explicitly. Options defaults are Search (searchLabel), Countries (listLabel) and No results (emptyLabel), also available through shorthand optionsProps. Calling codes omit the plus sign in caller data and display with LTR isolation.
EmojiPicker Caller-supplied searchLabel, searchPlaceholder, loadingLabel, and emptyLabel. Emoji names, categories, and search tags come from the caller-selected Emojibase locale. Applications supply the data URL, translations, selection handling, and popup lifecycle.
ImageInput uploadLabel, removeLabel, and abortLabel default to Upload, Remove, and Abort. The upload label names the visible upload button, preview button, and hidden file input. Native accessible attributes can supply names and descriptions for the file input. Applications supply helperText and errorMessage, including validation instructions and translated strings.
Toast and Toaster Caller-owned children, description, icon, action, and cancelLabel nodes (default Cancel), plus iconLabel and closeLabel (default Close). Live updates replace only supplied fields. Toaster accepts native accessible attributes over its Notifications region default. Multiple Toasters mirror one provider-owned notification lifecycle; each region owns its accessible name.
Chip and Avatar Chip content, translated fallbacks and interactive accessible names belong to the caller. Missing children add no label. Avatar's image and default fallback are decorative. name supplies the visual initial and colors. Explicit imageProps.alt labels the image and default fallback; caller fallback semantics take precedence. Composed buttons and links own their labels and interaction handlers.
JsonTree Callers supply empty string, array, and object labels and expanded/collapsed arrow names. JSON booleans, null, property names, and values are data.
ResizeHandle and CodeEditor ResizeHandle accepts native labels over Resize. Hosts supply a contextual label, aria-controls, and the focus destination when collapsing a panel removes its handle. CodeEditor exposes resizeLabel (default Resize editor) and Monaco options, including its editor accessible label. The loading indicator adds no text. Monaco owns its internal editor messages.
Input, Textarea, Select, Field, Slider, Radio, RadioGroup, Checkbox, Switch, SegmentedControl Native attributes, compound label/description/error parts, options, and children belong to the caller. Browser validation messages remain browser-owned; Field.Error children or render content can replace them.
Dialog, AlertDialog, Popover, Tooltip, Tabs Text belongs to title, description, close, trigger, tab, and popup parts. No built-in English action or status strings.
Banner, InlineBanner, SettingsRow, Section, CommandBlock Content and labels belong to supplied props or children.
Tag, Status, Badge, AvatarGroup, ColorSample, TintedIconTile, typography, layout and icon exports Caller content, data values, native accessible attributes where supported, or decorative output. Applications own badge count formatting, clamping, zero visibility, and translated labels. Loader and progress graphics add no built-in English loading message.

Shortcut owns symbol and separator formatting for visual hints and strings. Flat key arrays represent simultaneous combinations; nested key arrays represent ordered sequences of combinations. Hosts supply sequenceJoinLabel (default then), optional combinationSeparator, and native accessible labels. The shortcutJoinLabel props on host controls forward the sequence label.