Brand Assets Menu
ncdai/brand-assets-menuUnverifiedComponent
Context menu for copying brand SVGs and opening asset links.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/exekartik/exeKartik/main/brand-assets-menu.jsonSource
1"use client"23import { useTiks } from "@rexa-developer/tiks/react"4import { toast } from "sonner"56import {7 ContextMenu,8 ContextMenuContent,9 ContextMenuItem,10 ContextMenuSeparator,11 ContextMenuTrigger,12} from "@/components/ui/context-menu"13import { IconPlaceholder } from "@/registry/icons/icon-placeholder"1415export type BrandAssetsMenuProps = {16 logomark: React.ReactElement17 logomarkSVG: string18 logotypeSVG: string19 brandGuidelinesURL: string20 brandAssetsURL: string21 children: React.ReactElement22}2324export function BrandAssetsMenu({25 logomark,26 logomarkSVG,27 logotypeSVG,28 brandGuidelinesURL,29 brandAssetsURL,30 children,31}: BrandAssetsMenuProps) {32 const { success } = useTiks()3334 return (35 <ContextMenu>36 <ContextMenuTrigger asChild>{children}</ContextMenuTrigger>3738 <ContextMenuContent className="w-fit">39 <ContextMenuItem40 onClick={() => {41 copyText(logomarkSVG)42 toast.success("Logomark as SVG copied")43 success()44 }}45 >46 {logomark}47 Copy Logomark as SVG48 </ContextMenuItem>4950 <ContextMenuItem51 onClick={() => {52 copyText(logotypeSVG)53 toast.success("Logotype as SVG copied")54 success()55 }}56 >57 <IconPlaceholder58 lucide="TypeIcon"59 tabler="IconLetterT"60 hugeicons="TextIcon"61 phosphor="TextTIcon"62 remixicon="RiText"63 />64 Copy Logotype as SVG65 </ContextMenuItem>6667 <ContextMenuSeparator />6869 <ContextMenuItem asChild>70 <a71 href={brandGuidelinesURL}72 target="_blank"73 rel="noopener noreferrer"74 >75 <IconPlaceholder76 lucide="SquareDashedIcon"77 tabler="IconShape"78 hugeicons="DashedLine02Icon"79 phosphor="BoundingBoxIcon"80 remixicon="RiShapeLine"81 />82 Brand Guidelines83 </a>84 </ContextMenuItem>8586 <ContextMenuItem asChild>87 <a88 href={brandAssetsURL}89 target="_blank"90 rel="noopener noreferrer"91 download92 >93 <IconPlaceholder94 lucide="DownloadIcon"95 tabler="IconDownload"96 hugeicons="Download01Icon"97 phosphor="DownloadSimpleIcon"98 remixicon="RiDownloadLine"99 />100// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from ncdai
All 17 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Apple Hello Effectapple-hello-effect | ncdai | Components | Unverified | 1 dep | |
| Apple Hello Effect - Hindiapple-hello-effect-hindi | ncdai | Components | Unverified | 1 dep | |
| Apple Hello Effect - Spanishapple-hello-effect-spanish | ncdai | Components | Unverified | 1 dep | |
| Apple Hello Effect - Vietnameseapple-hello-effect-vietnamese | ncdai | Components | Unverified | 1 dep | |
| chevrons-up-down-iconchevrons-up-down-icon | ncdai | Components | Unverified | 1 dep | |
| Code Block Commandcode-block-command | ncdai | Components | Unverified | 4 deps · 3 files | |
| Consent Managerconsent-manager | ncdai | Components | Unverified | 1 dep · 2 files | |
| Contribution Graphcontribution-graph | ncdai | Components | Unverified | 1 dep |
