Merge version_1 into main #3
@@ -8,14 +8,15 @@ interface SvgTextLogoProps {
|
||||
fontWeight?: number | string;
|
||||
fill?: string;
|
||||
textAnchor?: "start" | "middle" | "end";
|
||||
dominantBaseline?: "auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging" | "text-top";
|
||||
dominantBaseline?: "auto" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "middle" | "central" | "text-after-edge" | "use-script" | "no-change" | "reset-size";
|
||||
}
|
||||
|
||||
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
text,
|
||||
className = "", fontSize = 24,
|
||||
fontFamily = "Arial, sans-serif", fontWeight = 700,
|
||||
fill = "currentColor", textAnchor = "middle", dominantBaseline = "middle"}) => {
|
||||
fill = "currentColor", textAnchor = "middle", dominantBaseline = "middle"
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
viewBox={`0 0 ${text.length * fontSize} ${fontSize * 1.5}`}
|
||||
|
||||
Reference in New Issue
Block a user