UNPKG

xlibs-components

Version:

Modern React component library with Aceternity, MagicUI, and ShadCN components for building beautiful web applications

11 lines (10 loc) 715 B
"use client"; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import * as React from "react"; import { GalleryVerticalEnd } from "lucide-react"; import { cn } from '../lib/utils.js'; const BrandLogo = React.forwardRef(({ className, companyName = "Acme Inc.", icon, href = "#", ...props }, ref) => { return (_jsxs("a", { ref: ref, href: href, className: cn("flex items-center gap-2 font-medium", className), ...props, children: [_jsx("div", { className: "bg-primary text-primary-foreground flex size-6 items-center justify-center rounded-md", children: icon || _jsx(GalleryVerticalEnd, { className: "size-4" }) }), companyName] })); }); BrandLogo.displayName = "BrandLogo"; export { BrandLogo };