PrimeBrickPrimeBrick
  • Docs
  • Contact
  • MIT License
  • Documentation
  • MCP Server
  • API Catalog
  • Services
  • Libraries
PrimeBrickPrimeBrick

© 2026 PrimeBrick. MIT License. v3.11.2

github
Backend
Frontend
    Developer Guide
      OverviewGetting startedUI stackApp shell & sidebarAuthentication & sessionsSystem settingsUI componentsUI patternsIcon ConventionsInput AnatomyField Hints & TooltipsButton Style StandardsEntity metadatai18n — Translations on the FrontendThe AI Tool Loop (caller-driven)Error HandlingComposables (use* hooks)
      Components
      API Reference
Microservices
powered by Zudoku
Developer Guide

Field Hints & Tooltips

Non-error field help in Primebrick is delivered exclusively through label tooltips — a small icon next to the field label that reveals a titled, priority-colored tooltip on hover or focus. Inline hint text under the control is deprecated and must not be added to new code.

Why

  • Forms stay compact: help takes zero vertical space.
  • One consistent interaction everywhere — users learn it once.
  • Severity is visible at a glance via the trigger icon.

The building blocks

ContextAPI
Formsnap/SuperForms fieldFormLabelWithPriorityHelp inside FormLabel
PrimeField rowshelp prop (FieldHelp or raw MetaColumn)
SwitchFieldtooltip, tooltipTitle, tooltipPriority props
Table/card headersMetaColumn.tooltip* + show_form_tooltip

Examples

Hint on a form field

Code
<FormLabel for={props.id}> {$t('create.key')} <FormLabelWithPriorityHelp text={$t('create.keyHelp')} priority="HINT" /> </FormLabel>

Warning about irreversible behaviour

Code
<FormLabelWithPriorityHelp text={$t('fields.immutableWarning')} priority="WARNING" />

The trigger icon mirrors the priority: WARNING renders an amber TriangleAlert, ERROR a red OctagonX, everything else a muted HelpCircle. Inside the tooltip the title and icon follow the same priority.

Optional marker

Optional fields show an icon + italic (optional) qualifier + tooltip:

Code
<FormLabelWithPriorityHelp text={$t('create.labelKeyHelp')} title={$t('app.common.optionalTooltipTitle')} labelKey="app.common.optional" priority="INFORMATION" />

Omit text for a pure marker (icon + qualifier, no tooltip body).

SwitchField

Code
<SwitchField label={$t('create.reserved')} tooltip={$t('create.reservedHelp')} tooltipPriority="INFORMATION" />

Titles

Every tooltip with body text shows a colored title. If title is not passed, it defaults to app.common.tooltipTitle.<priority> (Info, Hint, Warning, …). Bare tooltips without a title are not allowed.

Writing the copy

Aim at non-technical readers:

  • Explain in concrete terms ("a unique code that identifies this configuration"), not implementation terms ("key/value pair", "placeholder", "widget").
  • Optional defaults are "suggested values", not "auto-generated" values.
  • Always via $t() translation keys — never hardcode text.
  • One or two short sentences.

Deprecated

  • PrimeField hint prop → use help.
  • SwitchField description prop → use tooltip.
  • Hand-written &lt;p&gt; hints under inputs → migrate to label tooltips.

Next steps

  • FormLabelWithPriorityHelp
  • Input anatomy
  • PrimeField
Last modified on October 28, 2026
Input AnatomyButton Style Standards
On this page
  • Why
  • The building blocks
  • Examples
    • Hint on a form field
    • Warning about irreversible behaviour
    • Optional marker
    • SwitchField
  • Titles
  • Writing the copy
  • Deprecated
  • Next steps