From 4901afa0cdf30b4f135a36d5df61653d826207a1 Mon Sep 17 00:00:00 2001 From: hayao Date: Tue, 31 Oct 2023 14:13:22 +0900 Subject: [PATCH] Update: Add h3 and h4 --- src/components/Heading.tsx | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/components/Heading.tsx b/src/components/Heading.tsx index da995bc..4663537 100644 --- a/src/components/Heading.tsx +++ b/src/components/Heading.tsx @@ -1,10 +1,20 @@ import classNames from "classnames"; -export default class Heading { - static h2(props: React.HtmlHTMLAttributes) { - return

; - } - static h1(props: React.HtmlHTMLAttributes) { - return

; - } +const commonClassNames = ["prose", "my-3", "font-bold"]; +type headingProps = React.HtmlHTMLAttributes; + +export function h1(props: headingProps) { + return

; +} +export function h2(props: headingProps) { + return

; +} +export function h3(props: headingProps) { + return

; } + +export function h4(props: headingProps) { + return

; +} + +export default { h1, h2, h3, h4 };