Files
82c87e4b-b2d1-415e-9cd7-58e…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

33 lines
634 B
TypeScript

import React, { SVGProps } from "react";
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text?: string;
className?: string;
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text = "Webild", className = "", ...props
}) => {
return (
<svg
viewBox="0 0 200 50"
className={`w-full h-auto ${className}`}
{...props}
>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
fontSize="32"
fontWeight="bold"
fill="currentColor"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;