Skip to content

Commit

Permalink
fix: pass dim prop to Text
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyotato committed Aug 14, 2024
1 parent 947ac61 commit e434cec
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ export interface TextProps {
className?: string;
}

function Text({ children, className, ...props }: TextProps) {
function Text({ children, className, dim, ...props }: TextProps) {
const splitText = `${children}`.split("\n").map((sentence, index) => {
return (
<span className={style(className, "text")} key={index + sentence}>
<span
className={style(className, "text", { dim })}
key={index + sentence}
{...props}
>
{sentence}
</span>
);
Expand Down

0 comments on commit e434cec

Please sign in to comment.