ZAO造

Parts

Source: docs/parts.md

ZAO names a component’s functional parts with data-zao-slot and identifies its authored container with data-zao-component. These are existing styling hooks, not a replacement for native semantics or the component API. Qualify a part by its owning component before styling it: the same role can have different native semantics or paint in different components.

This catalog includes all 89 package-authored slot names and all 17 component markers. Names are static; parts may be conditional, portal-mounted, or supplied by a compound component. Host-added hooks and Base UI’s internal focus guards, hidden form fields and positioners are outside this catalog. An icon implementation must forward supplied SVG props to expose its icon hook.

The source owners below identify where a hook is authored. Reused Button hooks remain Button-authored even when a component composes Button. No public hooks need renaming for this catalog.

Component markers

ValueAuthored marker and ownership
buttonNative Base UI action target. The painted face is a child; the loading announcement is a sibling.
approval-gateHost-owned request and decision wrapper; its content Card and action Buttons retain their own markers.
cardThe stationary content frame itself. Card authors no slot attributes.
comboboxLabeled outer field wrapper, containing editing parts and its locally mounted popup portal.
composerNative controlled form and stationary writing tray.
conversationNamed transcript section.
dialogModal Dialog.Popup, not the Root provider or its trigger/backdrop/viewport.
icon-buttonWrapper around a shared button target and its locally mounted tooltip.
menuWrapper around the Button trigger and its locally mounted popup portal.
messageNamed article with author and lifecycle.
planNamed ordered run of host-provided steps and statuses.
progressBase UI progress root containing the header and measured track.
selectLabeled outer field wrapper, containing the trigger and locally mounted popup portal.
switchBase UI native switch target and stationary housing.
tableStationary frame outside the named scroll area and native table.
tabsBase UI tabs root.
text-fieldBase UI field wrapper containing label, control and guidance.

Shared Button hooks also appear through IconButton, Menu.Trigger, Dialog.Trigger/Close, Conversation.Latest and Composer actions. The table below lists source authors, so these inherited hooks do not change the exact file inventory.

Part names

Part nameOne-line definitionSource authors
actionsExplicit action row in a Composer tray, ApprovalGate or Dialog, or beneath a Message.ApprovalGate, Composer, Dialog, Message
announcementVisually hidden polite transcript lifecycle feedback.Conversation
attachment-nameVisible filename of an included Composer attachment.Composer
attachment-previewLoaded image preview of an included attachment; the fallback file icon has no slot.Composer
attachmentsNamed list of included attachments.Composer
authorAssistant's visible authorship or the visually hidden “You” name for a user Message article.Message
backdropSemantic page veil behind a modal Dialog.Dialog
bodyNative table body group (tbody) or aligned content under a Plan step.Plan, Table
button-contentInline group for a Button label and optional leading/trailing icons.Button
button-labelVisible Button children when visual/loading content requires a group; plain children may have no label wrapper.Button
captionNative table caption (caption).Table
cellNative table data cell (td).Table
clearNamed action that clears the committed Combobox value.Combobox
clear-spaceReserved width for the Combobox clear action, preserving input geometry.Combobox
closeDialog dismissal action rendered through the shared Button.Dialog
contentOrdinary React content within a Message.Message
contextOptional container for host-supplied Composer context.Composer
context-chipRemovable Composer context tag provided by ComposerContextChip.Composer
context-iconOptional decorative icon identifying a context tag.Composer
controlNative text input rendered by Base UI Field.Control.TextField
descriptionOptional accessible guidance for a field or modal Dialog.Combobox, Dialog, Select, TextField
detailOptional supporting text below a Plan step title.Plan
emptyNo-match message in the Combobox popup.Combobox
errorVisible field, send or response failure and recovery guidance.Combobox, Composer, Message, Select, TextField
error-iconDecorative warning glyph before a field's correction, shared by TextField, Select and Combobox.FieldCorrection
faceFront painted plane: Button content surface or Switch thumb surface.Button, Switch
factsDefinition list of request facts shown by ApprovalGate.ApprovalGate
footerNative table footer group (tfoot).Table
gaugeDecorative run gauge in a Plan header: one hairline tick per step beside the count.Plan
graduationPrimary Tabs mark at an actual adjacent-tab gap midpoint: full height when horizontal, minor when vertical.Tabs
guidanceVisually hidden Composer keyboard instructions associated with the draft.Composer
headNative table header cell (th) with row or column scope.Table
headerHeading group: ApprovalGate request, Plan summary, Table columns, Message authorship or Progress reading.ApprovalGate, Message, Plan, Progress, Table
iconDecorative IconButton action glyph or Select trigger caret.IconButton, Select
indicatorMeasured state carrier: Tabs selection decoration or Progress quantitative span.Progress, Tabs
indicator-spaceReserved item width for a choice component's committed-value checkmark.Combobox, Select
inputEditable Combobox query input or Composer draft textarea.Combobox, Composer
input-groupStationary Combobox field frame around input, clear space and trigger.Combobox
itemOne Menu action, choice option or native Conversation list item.Combobox, Conversation, Menu, Select
item-indicatorCheckmark for a choice component's committed value, independent of navigation emphasis.Combobox, Select
item-textVisible label of a choice option.Combobox, Select
itemsScrollable Menu action container inside its popup frame.Menu
labelAccessible field/task name; Composer's required label is visually hidden.Combobox, Composer, Plan, Progress, Select, TextField
latestDocked secondary Button returning the Conversation viewport to the latest response; its down-arrow is decorative.Conversation
leading-iconOptional decorative Button glyph before its visible label.Button
listBase UI options/tabs list or native ordered Conversation list.Combobox, Conversation, Select, Tabs
loading-announcementPolite Button loading feedback outside the native target; present when loading is supplied.Button
loading-overlayCentered spinner plane replacing visible Button label ink during label-based loading.Button
menu-indicatorDecorative caret identifying Menu's labeled trigger.Menu
metadataOptional Message supporting information such as time or source count.Message
noteOptional action-row explanation before ApprovalGate decisions or beside a Dialog's actions.ApprovalGate, Dialog
panelBase UI Tabs content panel associated with a tab.Tabs
popupPopup content frame: floating Menu/choice content or a modal Dialog.Combobox, Dialog, Menu, Select
penDecorative hairline that leads a step while an entering Plan draws in.Plan
portalLocal portal wrapper mounting Menu/choice floating content.Combobox, Menu, Select
railPrimary Tabs guide carrying end stops and graduations.Tabs
reveal-edgeDecorative lip following popup reveal clipping toward the far frame edge.Combobox, Menu, Select
rootOwning native/provider wrapper for the component's parts and semantics.Combobox, Conversation, Menu, Message, Plan, Progress, Select, Switch, Tabs, TextField
rowNative table row (tr), optionally marked as visually selected.Table
recordDecision result replacing ApprovalGate's action row, with optional approved impression.ApprovalGate
record-textDecision verb and host-provided person/time inside an ApprovalGate record.ApprovalGate
resultDecorative outcome read on a Button's seated face for one Hold beat, over the retained action.Button
scroll-areaNamed keyboard-focusable horizontal scroll region around the native table.Table
seal-wellDecorative drawn place for the seal in a held ApprovalGate; holding the action fills it.ApprovalGate
selection-linePrimary Tabs selected line centered on the ruler guide.Tabs
stepsOrdered list carrying the Plan's step sequence.Plan
separatorSemantic divider between Menu action groups.Menu
shortcutA Menu item's keyboard shortcut as people read it, at the trailing edge.Menu
sideDecorative layer carrying the two banded side planes between face and fixed base.Button, Composer
spinnerDecorative pending mark: eight hairline ticks that fill a tick per step while an action or step is pending.Button
statusVisible Plan state word or non-complete Message lifecycle wording.Message, Plan
tabNative Base UI tab target with stationary label and focus outline.Tabs
stepNative ordered-list item with its Plan status and rail station.Plan
summaryVisible count of completed Plan steps.Plan
tableNative table reading plane inside the outer frame.Table
thumbConnected Switch moving assembly carrying its face and shaded side.Switch
tickDecorative primary Tabs registration mark for one target.Tabs
titleAccessible request/step title or Dialog title.ApprovalGate, Dialog, Plan
tooltipIconButton's hover/focus label, with Base UI dismissal and hover behavior.IconButton
trackStationary recessed Progress scale and frame.Progress
trailing-actionDecorative Button indicator pinned to the end of its face; not a second actionable target.Button
trailing-iconOptional decorative Button glyph after its visible label.Button
triggerNative owner action opening Menu, choice or Dialog content.Combobox, Dialog, Menu, Select
impressionDecorative seal mark on an approved ApprovalGate record.ApprovalGate
referenceOptional request identifier in an ApprovalGate header.ApprovalGate
indexDecorative two-digit Plan position; the ordered list supplies its semantic position.Plan
valueVisible committed Select value or formatted Progress reading.Progress, Select
viewportBounded view/scroll wrapper for choices, Tabs or Conversation; Dialog's modal positioning and scroll viewport.Combobox, Conversation, Dialog, Select, Tabs
writingComposer group containing its label, draft input and guidance/error feedback.Composer

Non-slot hooks

Message.Actions accepts placement="header" to place response utilities in the author row; the default end placement preserves the action row after content. Conversation.Item exposes data-zao-entering when it mounts after Root's first commit; entering={false} suppresses that marker for restored history. Composer attachment tiles expose data-zao-entering and data-zao-removing; ComposerContextChip exposes data-zao-removing during its one-beat drawing. These are component-owned lifecycle hooks, not new slots. The down-arrow in Conversation.Latest is local decorative SVG geometry and has no authored slot.

Construction concepts and DOM paint

ConceptActual current implementationAudit conclusion
FaceButton and Switch have a literal face slot. Secondary Tabs paints its selection indicator as a face. Progress paints its quantitative indicator as a face. Card's content plane is the component element.Definition is consistent. Functional carrier names may differ from anatomical names; no replacement hooks are needed.
SideTwo banded planes between a face's trailing edges and its base (finish plan V2, Oct 11). Button paints them on its side slot (::before across the axis's x component, ::after across y). Card, Dialog, Table, Menu, Select and Combobox popups, the Switch thumb and the secondary Tabs indicator paint them on their own pseudo-elements (construction-planes).Button's side slot exists so its own ::after can carry the focus brackets. Elsewhere the planes are CSS paint; avoid fictional DOM nodes.
BaseThe native box moved a rest depth (depth.rest.small, control or surface) back along the axis. No element paints it alone; the planes end at its edges. The native Button element owns the hit area; its focus brackets (::after) stay outside the part. Switch's stationary root is the housing.The README's physical “base holds target/focus” description is conceptual; clarify ownership in docs. Do not rename Switch thumb to base.
Contact edgeThe banded planes replace the drawn contact on Button, Card, Dialog, Table, Menu, Select and Combobox popups, the Switch thumb, the secondary Tabs face, and Composer's raised tray. Fields, Progress, the Switch channel and the secondary Tabs list are recessed wells with stepped inner walls (construction-well).No contact-edge slot exists. Drawing and structure remain independent of depth; naming a conceptual edge need not add a hook.
JointThe relationship between an owner trigger and the floating popup's collision-resolved placement. reveal-edge begins there, then becomes the far edge.No joint slot exists. The reveal edge is a moving part, not another name for the joint. Base UI [data-side] is placement, not anatomical Side.

Source pointers: theme.css utilities construction-shading, construction-planes, construction-well, popup-construction, card-shaded-construction, focus-brackets and button-construction; Menu joint and reveal placement in menu-construction; switch.css thumb assembly; tabs.css secondary indicator face; progress.css frame and measured face; composer.css tray planes and conversation CSS message/latest construction.

Shared and different names

  • header, item, list, value, icon, viewport, input, trigger, popup, and indicator name broad roles. Their native element, semantics and approved paint remain component-specific. Always qualify ownership before styling.
  • button-label and label are not the same accessible relationship: Button's visible ink supplies its action name; fields and Progress use associated labeling primitives.
  • button-content is an inline layout group; Message content is the message reading region. These are not equivalent planes.
  • Menu items is its scrolling content wrapper; Select/Combobox viewport contains a separate named list. Renaming them would hide a real structural difference.
  • TextField control and Combobox input both edit text, but preserve their Base UI field/editing primitive roles. A common editing-plane concept can be documented without rewriting hooks.
  • Button trailing-action is decorative and aria-hidden; its name does not create a separate interactive action. Document this explicitly rather than imply another native target.