Files
a1fce4f1-720c-4c5b-8151-458…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

40 lines
704 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
fontSize?: number;
fontFamily?: string;
fill?: string;
className?: string;
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
fontSize = 32,
fontFamily = 'Arial',
fill = '#000000',
className = '',
}) => {
return (
<svg
width="200"
height="80"
viewBox="0 0 200 80"
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<text
x="10"
y="50"
fontSize={fontSize}
fontFamily={fontFamily}
fill={fill}
dominantBaseline="central"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;