Skip to content

Commit

Permalink
feat: add class to prop so styles apply
Browse files Browse the repository at this point in the history
  • Loading branch information
weixinn committed Jun 4, 2024
1 parent 432a0f7 commit 2bed41e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ export default function Text({ token, ...props }: TextProps) {
if (token.raw === " ") {
return <>&nbsp;</>;
}
return <span {...props}>{el || token.raw}</span>;
return (
<span class="title" {...props}>
{el || token.raw}
</span>
);
}

0 comments on commit 2bed41e

Please sign in to comment.