diff --git a/src/shared/Heading.tsx b/src/shared/Heading.tsx new file mode 100644 index 0000000..0dd36cc --- /dev/null +++ b/src/shared/Heading.tsx @@ -0,0 +1,36 @@ +import React, { HTMLAttributes, ReactNode } from "react"; + +export interface HeadingProps extends HTMLAttributes { + fontClass?: string; + desc?: ReactNode; + isCenter?: boolean; +} + +const Heading: React.FC = ({ + children, + desc = "Discover the most outstanding articles in all topics of life. ", + className = "mb-10 text-neutral-900 dark:text-neutral-50", + isCenter = false, + ...args +}) => { + return ( +
+
+

+ {children || `Section Heading`} +

+ {desc && ( + + {desc} + + )} +
+
+ ); +}; + +export default Heading;