Files
fcc5c6ac-8607-4c3d-b506-0dd…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

35 lines
678 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
textClassName?: string;
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
textClassName = '',
}) => {
return (
<svg
className={`w-full h-full ${className}`}
viewBox="0 0 1000 200"
preserveAspectRatio="xMidYMid meet"
xmlns="http://www.w3.org/2000/svg"
>
<text
x="50%"
y="50%"
dominantBaseline="middle"
textAnchor="middle"
className={`fill-current text-4xl font-bold ${textClassName}`}
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;