From b836f0a9f8b783e3328983ad087aa2b7b297b43a Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 15 Apr 2022 14:38:54 +0200
Subject: chore: add a CommentForm component

---
 src/components/atoms/headings/heading.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/components/atoms/headings/heading.tsx')

diff --git a/src/components/atoms/headings/heading.tsx b/src/components/atoms/headings/heading.tsx
index 3048534..4703b5d 100644
--- a/src/components/atoms/headings/heading.tsx
+++ b/src/components/atoms/headings/heading.tsx
@@ -8,6 +8,10 @@ export type HeadingProps = {
    * Set additional classnames.
    */
   className?: string;
+  /**
+   * The heading id.
+   */
+  id?: string;
   /**
    * Use an heading element or only its styles. Default: false.
    */
@@ -30,6 +34,7 @@ export type HeadingProps = {
 const Heading: FC<HeadingProps> = ({
   children,
   className,
+  id,
   isFake = false,
   level,
   withMargin = true,
@@ -41,6 +46,7 @@ const Heading: FC<HeadingProps> = ({
   return (
     <TitleTag
       className={`${styles.heading} ${styles[levelClass]} ${styles[marginClass]} ${className}`}
+      id={id}
     >
       {children}
     </TitleTag>
-- 
cgit v1.2.3

