On this page

Application content

Native component composition, source semantic content and evidenced plugin capability boundaries.

Native components first

Use real AntD/framework components, native props, slots and behavior. A producer stylesheet does not authorize a div-based replacement or a skin-only wrapper. Use Card for cards/panels, Button for actions, Input/Textarea/Select for fields, Tabs/Segmented for choices, List/Table for collections, Tag/Badge for labels, Progress/Steps for progress, Divider for standalone separators, and native feedback, Avatar/Image and Typography capabilities where available.

Business components retain actual data, state, behavior and meaningful native composition. Inventory every replacement and migrate every caller/import/export. For a retained custom capability, record native candidates, the concrete missing capability and producer decision. Link/status/hover appearance alone is not a gap. Do not relocate a product stylesheet upstream. See the complete native adapter contracts.

Identity is not status

A provider, person or connection identifies an entity. Keep its readable name, actual brand asset and aspect ratio; use neutral native Tag/Avatar/Image anatomy. Do not hash names into a palette or recolor identities as success/warning/danger. Operational status, selection and keyboard focus are independent meanings.

Content part Source role (nominal 16 px root)
Connector/partner brand image height; intrinsic width content.partner-logo.image-size 24px
Person or permission-member avatar content.avatar.size 32px
System/provider frame / contained glyph content.identity-mark.size 44px / image-size 24px
Empty-state illustration container content.empty-illustration.size 96px

Use real native Image for connector/partner brands: :preview="false", :height="tokenPixels('content.partner-logo.image-size', locale, root)", width="auto" and class="bh-partner-logo-image". Same rendered height, intrinsic width: no square Avatar, equal width binding, maximum-width cap, crop, per-logo offset or invisible square frame. Keep the actual asset and alt text; retain a meaningful native text/icon fallback when no image is available. The same class on an authored brand SVG uses that height and its own viewBox ratio. Normal icon assets use their semantic icon-height role and intrinsic width too; this never changes Button hit targets or graph node anatomy.

Actual person/permission identity Avatars keep their native size/shape behavior. tokenPixels(name, locale, root) scales rem dimensions at numeric boundaries; the AntD root observer supplies the reader’s root and is reused by child setup calls. Never duplicate numeric conversion locally. Normal icon roles remain 16/20/24/32px. content.partner-logo.size is only a non-image placeholder extent, not permission to put a brand in a square tile.

bh-partner-logo-image and bh-content-icon-image close native Image’s width:100% fit gap without cropping the asset; native height props own geometry. bh-status-mark is optional paired operational icon/background paint on a real Avatar, with data-bh-tone="success|warning|danger|info|neutral". It does not resize the Avatar or turn identity into status. Use native shape and size props.

Compose the actual native affixed Input with a search prefix and allow-clear; keep native control sizing and the input’s single-row affix layout. A page action layout class must never be put on that native root: wrapping the prefix, input and suffix into separate rows breaks the component. Put the search on a full-width row below the heading; if a create action exists, a real native Flex holds the shrinking search (flex: 1 1 0; min-width: 0) and nonshrinking Button beside it with space.100 gap. Heading-to-search spacing is space.200. Preserve native clear/Enter/Escape/query behavior and any genuine sticky owner. A shortcut can remain keyboard-operable and exposed through aria-keyshortcuts without displaying a stray keycap in the field.

Semantic content and genuine composition

Authored headings, paragraphs, code, lists and descriptions remain semantic HTML; they are not reusable UI primitive replacements. Source data-bh-font, data-bh-text and data-bh-icon-size roles own their presentation. Framework RouterLink remains a real navigation link; bh-content-link supplies its source link/focus paint. Prefer native TypographyLink for ordinary UI links. Preserve href, modified-click, new-tab behavior and appropriate heading hierarchy.

The remaining source opt-ins have bounded purposes:

  • bh-control-group extends a real native Space for a composed inspection toolbar where AntD4 has no Toolbar: source4px inset/8px outer corners; data-bh-padding="8" uses8px inset/12px outer corners. Native Buttons remain real and independently focusable. This is not a replacement control group. data-bh-variant="dock" is the compact inspection family shared with native Data Flow: opaque surface, common frame/elevation, text Buttons, native Dividers, space.025 inter-control gaps, label-small typography, proportional Source glyphs and responsive native touch targets. Native loading blocks input; hover/open/pressed/focus/disabled retain distinct Source paint. On graphs add bh-diagram-dock inside the viewport and keep one horizontally scrollable control row; ordinary text-editor headers stay separate.
  • bh-ant-card-action-row extends a real native header-only Card: leading title and metadata share one flexible inline row; wrap only when they cannot fit. The native head wrapper has two tracks: minmax(0, 1fr) for title/metadata and a nonshrinking trailing extra action. This grid is not applied to the link: title and logos remain inline/flexible. Both axes of the head use space.200 inset, including small native Cards; action ends therefore align independently of title, logo or badge widths. The action track is at least the default control target (touch target on coarse pointers), vertically centered. Stretch the Card/head in the actual grid or native column when row heights should match. The real RouterLink uses space.100 gap, bh-card-link__title on the shrinkable/wrapping name and bh-card-link__metadata on its optional wrapping metadata Flex. Do not fix Card heights, hide metadata, insert fillers or add per-card offsets. Put a real RouterLink with bh-card-link in title; optional noninteractive metadata stays inside that link. Source extends its click/focus area across the Card; native Buttons/dropdowns remain independent siblings in extra, never nested in the link. Use native bodyStyle when the Card has no body. Leading EntityName content may opt into native wrapping so long names and tags remain visible without pushing the independent action slot.
  • bh-content-divider adds an edge to meaningful native/document/plugin anatomy whose API has no edge prop. Block-start is default; data-bh-axis="vertical" selects inline-start; data-bh-edge="end" selects the opposite edge. Physical top|bottom support document boundaries. Use actual Divider, not an empty div, for a standalone separator. No spacing is imposed.
  • bh-content-inset is canonical composed-document grouping16px, or8px with data-bh-density="compact", only after native anatomy has been checked. It is not permission to replace Card body/Form/Drawer padding with a custom frame.
  • bh-content-sheet is flat opaque reading/plugin fullscreen content, not a Card or generic dialog replacement. data-bh-surface="page|subtle" selects the source pair. It does not position an overlay, trap focus or replace overlay ownership.
  • bh-focus-target supplies only a focus outline for genuine plotted marks. Graph coordinates, hit testing, clustering and keyboard interaction stay domain behavior; native Timeline is an event list, not a timestamp plotting canvas.

Native Card hover is explicitly hoverable. Native selection opt-ins add their own fill/inset cue; operational accents survive it and focus stays an outside outline. Omit an optional variant to recover the configured native base. Disabled activation is native/business behavior, never a CSS substitute. Charts and severity follow data-visualization roles.

Selection belongs to the Card

A selected composed Card binds data-bh-selected on the actual native Card. Its primary title action may retain meaningful aria-pressed while opting into data-bh-card-action="primary" on a native text Button. The Card owns selected fill/frame; this Button does not draw a second selected border or inset stripe. It retains ordinary hover/press feedback and native Enter/Space activation. Keyboard focus remains visible on the Button and outside the containing Card. Other actions, including independent filter toggles, keep normal Button states. Do not replace aria-pressed with aria-current merely to avoid selected paint, or turn a Card containing Buttons into another role="button".

Structured date and metric Tooltips

Use the native Tooltip title slot and overlay-class-name="bh-ant-metric-tooltip". Inside it, a semantic div.bh-metric-tooltip contains a strong date/header followed by a dl of alternating dt labels and dd values. Optional explanation follows the list. The Source column composition keeps the date separate from metric columns; the shared definition-list grid wraps labels at words and end-aligns unbroken tabular values. It does not split labels into one-character columns.

content.tooltip.metric-max-inline-size is a maximum (28rem), not a fixed width. The native popup also keeps space.200 viewport insets, uses canonical Tooltip space.050/space.075 padding and space.100 content/row gaps, and retains its inverse text/surface pair. This opt-in never broadens ordinary text Tooltips. Keep native placement/overflow adjustment and the owner’s popup container. Use hover and keyboard focus; for plotted SVG marks preserve the equivalent accessible numeric summary, focus/Escape dismissal and real touch selection. If a controlled popup must stay open while hovered, put its listeners on the real semantic content host: AntD4 Flex drops arbitrary listeners.

Measured resize and gesture capabilities

Use ResizablePanel from @beehexa/vue-components for resizable two-pane composition. It is a Beehexa Vue component, independent of Ant Design, not a consumer-owned splitter or an AntD custom control. Its package stylesheet owns the centered divider/visible handle, pointer/touch/keyboard behavior, constraints and resize lifecycle. Consumers supply bounded hosts, localized separator labels, slots and child viewport updates; do not retain duplicate splitter CSS or handlers. See the complete ResizablePanel component rules and public package API.

Interactive editor/canvas children follow the shared allocated renderer viewport contract. They fill remaining parent space; the source readable minimum is not a fixed preview cap or a minimum imposed on the outer mobile pane. Keep intrinsic metadata/chrome outside the viewport and preserve the renderer/model on resize. For an existing renderer root with its own header, bh-renderer-frame owns one access scroller around that intrinsic header and its sibling readable viewport; the minimum applies to the SDK surface, never the header or outer mobile pane.

Sortable public hooks may use bh-drag-ghost, bh-drag-clone and optional bh-drag-chosen; they change paint, not item geometry, order or lifecycle. bh-drag-surface is only for an existing owned direct-manipulation gesture, never scroll-only content.

bh-height-transition owns measured-height motion and reduced-motion behavior. For a measured min-height, use the public selector .bh-height-transition[data-bh-property='min-height']; retain the measured property rather than substituting fixed height or a consumer transition rule. Its explicit --bh-height-transition-duration parameter preserves an existing public duration prop; measurement/release timers must use that same duration. bh-content-reveal is readiness opacity, with data-bh-ready="true"; it changes neither layout nor focus/disabled semantics and is not hover disclosure.

Native hover-revealed actions

Set data-bh-hover-scope on an owned sanitized enhancement group and data-bh-reveal="hover" on its actual native Buttons. On fine hover pointers, rest opacity/pointer targeting is suppressed; group hover/focus-within or the Button’s own visible focus reveals it. The Button remains keyboard reachable. Coarse/no-hover pointers always see the native action. Loading Buttons remain visible with native loading opacity. Native source motion handles opacity; reduced-motion disables the transition. Never use display/visibility/tabindex to remove these actions. Generated-content attributes are added after sanitization, not trusted from authored HTML. A native HTML summary[data-bh-target="touch"] uses the44px source target without replacing its browser disclosure semantics.