Files
2086dc08-b49a-46f7-b792-28e…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

37 lines
859 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
textClassName?: string;
dominantBaseline?: 'auto' | 'inherit' | 'alphabetic' | 'hanging' | 'ideographic' | 'mathematical' | 'text-before-edge' | 'middle' | 'central' | 'text-after-edge' | 'use-script' | 'no-change' | 'reset-size';
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className,
textClassName,
dominantBaseline = 'middle',
}) => {
return (
<svg
width="200"
height="50"
viewBox="0 0 200 50"
className={className}
aria-label={text}
>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
className={textClassName || 'text-lg font-bold'}
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;