Files
740e683a-53e9-4bce-a6ff-6f3…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

44 lines
870 B
TypeScript

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