Files
338a91a5-4e01-4d1b-915c-270…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

36 lines
861 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';
}
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
textClassName = '',
dominantBaseline = 'middle',
}) => {
return (
<svg
viewBox="0 0 1000 200"
className={className}
preserveAspectRatio="xMidYMid meet"
aria-label={text}
>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
className={textClassName}
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;