properly handle weight prop on Text and TextTitle

This commit is contained in:
jeffvli
2025-09-29 00:34:27 -07:00
parent df9e039fce
commit 3fc2583470
2 changed files with 4 additions and 0 deletions
@@ -25,6 +25,7 @@ const _TextTitle = ({
isMuted,
isNoSelect,
overflow,
weight,
...rest
}: TextTitleProps) => {
return (
@@ -39,6 +40,7 @@ const _TextTitle = ({
},
className,
)}
fw={weight}
{...rest}
>
{children}
+2
View File
@@ -28,6 +28,7 @@ export const _Text = ({
isMuted,
isNoSelect,
overflow,
weight,
...rest
}: TextProps) => {
return (
@@ -39,6 +40,7 @@ export const _Text = ({
[styles.overflowHidden]: overflow === 'hidden',
})}
component="div"
fw={weight}
style={
{
'--font-family': font,