-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(h4): 👷 heading4 new component
- Loading branch information
1 parent
6622d12
commit 3cbd83f
Showing
4 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
type Heading4Props = { | ||
children: React.ReactNode | ||
textColor?: string | ||
customCss?: string | ||
} | ||
|
||
const Heading4 = ({ children, textColor = '', customCss = '' }: Heading4Props) => { | ||
return <h4 className={`mb-4 mt-8 text-xl font-bold ${textColor} ${customCss}`}>{children}</h4> | ||
} | ||
|
||
export default Heading4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters