Files
630083b5-e720-44aa-9267-a15…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

35 lines
677 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'baseline';
}
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
dominantBaseline = 'middle'
}) => {
return (
<svg
viewBox="0 0 1000 200"
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
className="font-bold text-4xl"
fill="currentColor"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;