43 lines
885 B
TypeScript
43 lines
885 B
TypeScript
import React from 'react';
|
|
|
|
interface SvgTextLogoProps {
|
|
text?: string;
|
|
fontSize?: number;
|
|
fontWeight?: number | string;
|
|
fill?: string;
|
|
className?: string;
|
|
dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'central' | 'middle' | 'text-bottom' | 'ideographic' | 'mathematical' | 'inherit';
|
|
}
|
|
|
|
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
|
text = 'Webild',
|
|
fontSize = 24,
|
|
fontWeight = 600,
|
|
fill = '#000',
|
|
className = '',
|
|
dominantBaseline = 'middle',
|
|
}) => {
|
|
return (
|
|
<svg
|
|
viewBox="0 0 200 50"
|
|
width="200"
|
|
height="50"
|
|
className={className}
|
|
>
|
|
<text
|
|
x="10"
|
|
y="25"
|
|
fontSize={fontSize}
|
|
fontWeight={fontWeight}
|
|
fill={fill}
|
|
dominantBaseline={dominantBaseline}
|
|
fontFamily="inherit"
|
|
>
|
|
{text}
|
|
</text>
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
export default SvgTextLogo;
|