Files
e80bcf18-a31e-4b5c-a537-4fe…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

36 lines
790 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'central' | 'ideographic' | 'mathematical';
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
dominantBaseline = 'middle',
}) => {
return (
<svg
viewBox="0 0 1000 200"
className={`w-full h-auto ${className}`}
preserveAspectRatio="xMidYMid meet"
>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize="120"
fontWeight="bold"
fill="currentColor"
fontFamily="system-ui, -apple-system, sans-serif"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;