Files
ab7bf0db-270f-4584-9b5c-48b…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

44 lines
928 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
fontSize?: number;
fontWeight?: string | number;
fill?: string;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'ideographic' | 'alphabetic' | 'central' | 'mathematical';
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
fontSize = 24,
fontWeight = 'bold',
fill = '#000',
textAnchor = 'middle',
dominantBaseline = 'middle',
}) => {
return (
<svg
viewBox="0 0 200 100"
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<text
x="100"
y="50"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;