diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-15 14:38:54 +0200 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-15 14:38:54 +0200 | 
| commit | b836f0a9f8b783e3328983ad087aa2b7b297b43a (patch) | |
| tree | b2ef8841a3fc94a1fe400e53597f9338e5391858 /src/components/atoms/headings/heading.tsx | |
| parent | 0ff94252e27a80221e221c6159761f46aa111ac3 (diff) | |
chore: add a CommentForm component
Diffstat (limited to 'src/components/atoms/headings/heading.tsx')
| -rw-r--r-- | src/components/atoms/headings/heading.tsx | 6 | 
1 files changed, 6 insertions, 0 deletions
| 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 @@ -9,6 +9,10 @@ export type HeadingProps = {     */    className?: string;    /** +   * The heading id. +   */ +  id?: string; +  /**     * Use an heading element or only its styles. Default: false.     */    isFake?: boolean; @@ -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> | 
