Files
00a698f5-2837-4fe6-9311-104…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

40 lines
950 B
TypeScript

import React from "react";
interface SvgTextLogoProps {
text: string;
className?: string;
fontSize?: number;
fontWeight?: number | string;
fill?: string;
textAnchor?: "start" | "middle" | "end";
dominantBaseline?: "auto" | "text-after-edge" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging";
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = "", fontSize = 24,
fontWeight = "bold", fill = "currentColor", textAnchor = "middle", dominantBaseline = "middle"
}) => {
return (
<svg
viewBox="0 0 200 50"
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<text
x="100"
y="25"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;