Files
513c6827-38ca-41ca-bfe0-e18…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

47 lines
1.1 KiB
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
fontSize?: number;
fontFamily?: string;
fontWeight?: number;
letterSpacing?: number;
dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'middle' | 'central' | 'ideographic' | 'mathematical' | 'inherit';
textAnchor?: 'start' | 'middle' | 'end' | 'inherit';
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
fontSize = 32,
fontFamily = 'Arial, sans-serif',
fontWeight = 700,
letterSpacing = 0,
dominantBaseline = 'middle',
textAnchor = 'middle',
}) => {
return (
<svg
viewBox="0 0 400 100"
className={`w-full h-auto ${className}`}
xmlns="http://www.w3.org/2000/svg"
>
<text
x="50%"
y="50%"
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
dominantBaseline={dominantBaseline}
textAnchor={textAnchor}
fill="currentColor"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;