Logo
edgecom/logoFreeComponent
The Edgecom Logo component.
Install it
npx shadcn@latest add https://design.edgecom.ai/r/logo.jsonSource
1import * as React from "react"23import { cn } from "@/lib/utils"45/**6 * Edgecom Energy brand logo.7 *8 * - `combination` (default): the mark + "EEConnect" wordmark lockup.9 * - `mark`: the isometric mark on its own (use in collapsed rails, favicons, avatars).10 *11 * The colored (gradient) artwork is the default; in dark mode the flat-white12 * artwork is shown instead. Switching is driven by the `.dark` class on an13 * ancestor (the convention used throughout this design system), so no props are14 * needed to handle theming — just size it with `className` (e.g. `h-8 w-auto`).15 */1617type LogoVariant = "combination" | "mark"1819interface LogoProps extends React.HTMLAttributes<HTMLSpanElement> {20 variant?: LogoVariant21 /** Accessible name for the logo. Set to "" to mark it decorative. */22 label?: string23}2425function Logo({26 variant = "combination",27 label = "Edgecom Energy",28 className,29 ...props30}: LogoProps) {31 const uid = React.useId()32 const Colored = variant === "mark" ? MarkColored : CombinationColored33 const White = variant === "mark" ? MarkWhite : CombinationWhite3435 return (36 <span37 role="img"38 aria-label={label || undefined}39 aria-hidden={label ? undefined : true}40 className={cn("inline-flex shrink-0 items-center", className)}41 {...props}42 >43 <Colored uid={uid} className="block h-full w-auto dark:hidden" />44 <White uid={uid} className="hidden h-full w-auto dark:block" />45 </span>46 )47}4849// ---------------------------------------------------------------------------50// Combination lockup (mark + wordmark)51// ---------------------------------------------------------------------------5253function CombinationColored({54 uid,55 className,56}: {57 uid: string58 className?: string59}) {60 const g = (n: number) => `${uid}-comb-${n}`61 return (62 <svg63 viewBox="0 0 500 128"64 fill="none"65 xmlns="http://www.w3.org/2000/svg"66 className={className}67 >68// … truncated
What it pulls in
Other registry items
Files it writes
More from edgecom
All 66 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | edgecom | Components | Free | 2 deps | |
| Alertalert | edgecom | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | edgecom | Components | Free | 1 dep | |
| Avataravatar | edgecom | Components | Free | 1 dep | |
| Badgebadge | edgecom | Components | Free | 2 deps | |
| Bannerbanner | edgecom | Components | Free | 1 dep | |
| Breadcrumbbreadcrumb | edgecom | Components | Free | 2 deps | |
| Buttonbutton | edgecom | Components | Free | 2 deps |
