Files
c3101b1b-3da5-4d14-a166-8e3…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

40 lines
750 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
textClassName?: string;
fill?: string;
textFill?: string;
}
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
textClassName = '',
fill = 'currentColor',
textFill = 'currentColor',
}) => {
return (
<svg
viewBox="0 0 300 100"
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
className={textClassName}
fill={textFill}
fontSize="48"
fontWeight="bold"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;