Skip to content

Commit 9ac6b38

Browse files
committed
[#50] ✨ add highlight component
1 parent 7d5f96a commit 9ac6b38

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export const Highlight = ({
2+
children,
3+
}: React.PropsWithChildren): JSX.Element => {
4+
return <span className={'text-primary-normal'}>{children}</span>
5+
}

src/components/common/text/Text.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import clsx from 'clsx'
2-
import React from 'react'
32

43
type Variant =
54
| 'heading1'
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Highlight } from './Highlight'
12
import { Text } from './Text'
23

3-
export { Text }
4+
export { Text, Highlight }

0 commit comments

Comments
 (0)