Files
9f0826ac-76c8-404d-b38c-200…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

36 lines
757 B
TypeScript

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