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
        Entity list tableComboSelectDynamicIconColorSelectorColorPickerAvatarPreviewEventCardCommandPaletteAppShellAppSidebarAppTopbarAppPageLayoutAppPageScaffoldAppPageBreadcrumbAppServerBannerBrowserClientInfoLangSelectThemeToggleSidebarAppLauncherSidebarHealthBadgeSidebarOrgSwitcherSidebarProfileMenuSidebarVersionBadgeButtonButton (async)FormPageLayoutFormLabelWithPriorityHelpPasswordChecklistChoiceboxDateWheelPickerEventToastLoadingBarMetadataLoadingJsonTableViewerNumberTickerStatCardToolbarDialogBorderedEntity Confirm DialogsSheet panelRFCErrorDialogLoginFormPasskeyButtonPasskeyEnrollmentAuthMethodsPromptDialogSessionExpiredDialogInputSliderSliderFieldSwitchFieldSelectableFieldsetBadgeValuesEditorTooltipFormPrimeFieldSmartRegexInput
      API Reference
Microservices
powered by Zudoku
Components

FormLabelWithPriorityHelp

src/lib/components/forms/FormLabelWithPriorityHelp.svelte

Purpose

A form-label help tooltip that can be styled by priority (info/warning/error) using PriorityTooltipContent. Use it when a field's help text carries a severity — for example, a warning that a setting is irreversible, or an info note about a recommended value.

Origin

Custom — Primebrick-written. Wraps the shadcn-svelte™ Tooltip primitive, PriorityTooltipContent, and a priority-mapped Lucide™ trigger icon (HelpCircle default, TriangleAlert/OctagonX for WARNING/ERROR).

Usage

Default (no priority)

Without an explicit priority, the tooltip still renders a title header — it defaults to INFORMATION styling and the app.common.tooltipTitle.* copy.

Code
<label class="flex items-center gap-1"> {$t('users.fields.username')} <FormLabelWithPriorityHelp text={$t('users.fields.usernameHelp')} /> </label>

With priority and title

Pass priority to render a styled tooltip with an optional title header. The trigger icon mirrors the priority: WARNING → TriangleAlert, ERROR → OctagonX, anything else → HelpCircle.

Code
<label class="flex items-center gap-1"> {$t('settings.fields.deleteMode')} <FormLabelWithPriorityHelp text={$t('settings.fields.deleteModeWarning')} priority="WARNING" title={$t('settings.fields.deleteModeTitle')} /> </label>

Marker only (no tooltip body)

text is optional — omit it for a pure qualifier marker:

Code
<label class="flex items-center gap-1"> {$t('settings.fields.labelKey')} <FormLabelWithPriorityHelp labelKey="app.common.optional" /> </label>

Props

Full prop table: see API reference — formlabelwithpriorityhelp.

Key props: text?: string (tooltip body — optional), priority?: TooltipPriority ('INFORMATION' | 'WARNING' | 'ERROR' | 'QUESTION' | 'HINT' | 'SUCCESS' — when omitted the tooltip uses INFORMATION styling), title?: string (header inside the tooltip — defaults to app.common.tooltipTitle.<priority>), labelKey?: string (i18n key for the italic qualifier next to the icon).

Next steps

  • Component catalog
  • UI stack
  • API reference
Last modified on October 28, 2026
FormPageLayoutPasswordChecklist
On this page
  • Purpose
  • Origin
  • Usage
    • Default (no priority)
    • With priority and title
    • Marker only (no tooltip body)
  • Props
  • Next steps