Files
a1cc4673-08d5-41fc-8de4-122…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

47 lines
1.0 KiB
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text?: string;
className?: string;
fontSize?: number;
fontFamily?: string;
letterSpacing?: number;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging';
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text = 'Webild',
className = '',
fontSize = 32,
fontFamily = 'Courier New, monospace',
letterSpacing = 2,
textAnchor = 'middle',
dominantBaseline = 'middle',
}) => {
return (
<svg
width="200"
height="60"
viewBox="0 0 200 60"
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<text
x="100"
y="30"
fontSize={fontSize}
fontFamily={fontFamily}
letterSpacing={letterSpacing}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
fill="currentColor"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;