Brand Assets Menu

Context menu for copying brand SVGs and opening asset links.

@lucide/sveltesvelte-sonner

Installation

pnpm dlx shadcn-svelte@latest add http://sveltekit-prerender/r/brand-assets-menu.json

Usage

usage.svelte

Features

  • Copy mark and logotype SVGs to the clipboard with toast feedback
  • Link out to brand guidelines and asset downloads from one menu
  • Wrap any element to use it as a right-click or press-and-hold trigger

Props

BrandAssetsMenu

Context menu for copying brand SVGs and opening asset links.

NameTypeDefaultDescription
logomarkSnippetundefinedCustom logomark content displayed within the copy menu item.
logomarkSVGstringundefinedSVG markup used when the user copies the logomark to the clipboard.
logotypeSVGstringundefinedSVG markup used when the user copies the logotype to the clipboard.
brandGuidelinesURLstringundefinedURL for the brand guidelines page opened in a new tab.
brandAssetsURLstringundefinedURL used for the brand assets download link.
childrenSnippet<{ props: Record<string, unknown> }>undefinedRender prop used to attach the trigger element and menu props to the custom trigger content.