34 lines
724 B
TypeScript
34 lines
724 B
TypeScript
import React from 'react';
|
|
|
|
interface SvgTextLogoProps {
|
|
text: string;
|
|
className?: string;
|
|
dominantBaseline?: 'auto' | 'alphabetic' | 'hanging' | 'ideographic' | 'mathematical' | 'middle';
|
|
}
|
|
|
|
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
|
text,
|
|
className = '',
|
|
dominantBaseline = 'middle',
|
|
}) => {
|
|
return (
|
|
<svg
|
|
viewBox="0 0 200 60"
|
|
className={`w-full h-auto ${className}`}
|
|
role="img"
|
|
aria-label={`Logo: ${text}`}
|
|
>
|
|
<text
|
|
x="50%"
|
|
y="50%"
|
|
textAnchor="middle"
|
|
dominantBaseline={dominantBaseline}
|
|
className="fill-current text-lg font-bold"
|
|
>
|
|
{text}
|
|
</text>
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
export default SvgTextLogo; |