43 lines
791 B
TypeScript
43 lines
791 B
TypeScript
import React from 'react';
|
|
|
|
interface SvgTextLogoProps {
|
|
text: string;
|
|
fontSize?: number;
|
|
fontFamily?: string;
|
|
fontWeight?: number | string;
|
|
fill?: string;
|
|
className?: string;
|
|
}
|
|
|
|
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
|
text,
|
|
fontSize = 48,
|
|
fontFamily = 'Arial, sans-serif',
|
|
fontWeight = 700,
|
|
fill = '#000000',
|
|
className,
|
|
}) => {
|
|
return (
|
|
<svg
|
|
viewBox="0 0 300 100"
|
|
className={className}
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<text
|
|
x="50%"
|
|
y="50%"
|
|
fontSize={fontSize}
|
|
fontFamily={fontFamily}
|
|
fontWeight={fontWeight}
|
|
fill={fill}
|
|
textAnchor="middle"
|
|
dominantBaseline="central"
|
|
>
|
|
{text}
|
|
</text>
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
export default SvgTextLogo;
|