typography: fix 'undefined' class

This commit is contained in:
thislight 2024-11-06 19:38:34 +08:00
parent 1526e4b2fe
commit f3ae69cd26
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -43,7 +43,7 @@ export function Typography<T extends AnyElement>(
<Dynamic <Dynamic
ref={managed.ref} ref={managed.ref}
component={managed.component ?? "span"} component={managed.component ?? "span"}
class={`${managed.class} ${managed.typography}`} class={`${managed.class || ""} ${managed.typography}`}
{...passthough} {...passthough}
></Dynamic> ></Dynamic>
); );