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

© 2026 PrimeBrick. MIT License. v3.8.0

github
Backend
Frontend
    OverviewGetting startedUI stackApp shell & sidebarAuthentication & sessionsSystem settingsUI componentsUI patterns
    Components
      Entity list tableComboSelectDynamicIconColorSelectorAvatarPreviewEventCardCommandPaletteAppShellAppSidebarAppTopbarAppPageLayoutAppPageScaffoldAppPageBreadcrumbAppServerBannerBrowserClientInfoLangSelectThemeToggleSidebarHealthBadgeSidebarModuleSwitcherSidebarOrgSwitcherSidebarProfileMenuSidebarVersionBadgeButton (async)FormPageLayoutFormLabelWithHelpFormLabelWithPriorityHelpPasswordChecklistChoiceboxDateWheelPickerEventToastLoadingBarMetadataLoadingJsonTableViewerDialogBorderedRFCErrorDialogLoginFormPasskeyButtonPasskeyEnrollmentAuthMethodsPromptDialogSessionExpiredDialogInputTooltipForm
    API Reference
Microservices
powered by Zudoku
Components

DialogBordered

src/lib/components/ui/dialog-bordered.svelte

Purpose

Wraps ui/dialog to add a colored top strip (2px tall) above the dialog body. The strip color signals the dialog's semantic intent (primary, info, warning, success, destructive, neutral). Use it anywhere you want a dialog that visually communicates its category at a glance — confirmation prompts, error detail viewers, success notices.

Origin

Custom — thin wrapper around the in-repo ui/dialog (shadcn-svelte™ extended). Adds the colored header strip and forwards open/children.

Usage

Default (primary)

Code
<script lang="ts"> import BorderedDialog from "$lib/components/ui/dialog-bordered.svelte"; let open = $state(false); </script> <BorderedDialog bind:open> <h2 class="text-lg font-semibold">Confirm action</h2> <p class="text-sm text-muted-foreground">Are you sure?</p> </BorderedDialog>

Destructive confirmation

Code
<BorderedDialog bind:open color="destructive"> <h2 class="text-lg font-semibold text-destructive">Delete repository</h2> <p class="text-sm text-muted-foreground">This action cannot be undone.</p> </BorderedDialog>

Warning without close button

Code
<BorderedDialog bind:open color="warning" showCloseButton={false}> <p>Read-only notice.</p> </BorderedDialog>

Props

Full prop table: see API reference — dialog-bordered.

Key props:

  • open (boolean, bindable) — controls dialog visibility.
  • color ("primary" | "info" | "warning" | "success" | "destructive" | "neutral", default "primary") — top strip color. warning and destructive use an animated gradient pan.
  • showCloseButton (boolean, default true) — forwarded to Dialog.Content.
  • class — extra classes for Dialog.Content.
  • children (Snippet, required) — dialog body.

Next steps

  • RFCErrorDialog
  • Component catalog
  • UI stack
  • API reference
Last modified on July 26, 2026
JsonTableViewerRFCErrorDialog
On this page
  • Purpose
  • Origin
  • Usage
    • Default (primary)
    • Destructive confirmation
    • Warning without close button
  • Props
  • Next steps