Merge version_1 into main #2
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import React, { SVGAttributes } from 'react';
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
interface SvgTextLogoProps extends SVGAttributes<SVGSVGElement> {
|
||||
text: string;
|
||||
className?: string;
|
||||
fontSize?: number;
|
||||
@@ -16,12 +16,14 @@ const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
fontWeight = 700,
|
||||
letterSpacing = 2,
|
||||
dominantBaseline = 'middle',
|
||||
...svgProps
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
viewBox={`0 0 ${text.length * (fontSize * 0.6)} ${fontSize * 1.5}`}
|
||||
className={`w-full h-auto ${className}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
{...svgProps}
|
||||
>
|
||||
<text
|
||||
x={fontSize * 0.3}
|
||||
|
||||
Reference in New Issue
Block a user