Skip to content

Commit fe08965

Browse files
committed
Actually render Title as span by default
1 parent e51ddec commit fe08965

File tree

1 file changed

+6
-1
lines changed
  • packages/bento-design-system/src/Typography/Title

1 file changed

+6
-1
lines changed

packages/bento-design-system/src/Typography/Title/Title.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ export function Title({
2828
...boxProps
2929
}: Props) {
3030
return (
31-
<Box {...boxProps} className={titleRecipe({ size, color, ellipsis })} textAlign={align}>
31+
<Box
32+
as="span"
33+
{...boxProps}
34+
className={titleRecipe({ size, color, ellipsis })}
35+
textAlign={align}
36+
>
3237
{children}
3338
</Box>
3439
);

0 commit comments

Comments
 (0)