Skip to content

Commit

Permalink
fix(Text): Only apply elementType when RAC Text component is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Oct 29, 2024
1 parent 1efd478 commit cdffe11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/Text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const _Text = ({
return (
<Component
{...props}
elementType={as}
elementType={props.slot ? as : undefined}
className={cn(
'text-[--color] outline-[--outline]',
classNames,
Expand Down

0 comments on commit cdffe11

Please sign in to comment.