Edited Heading component
This commit is contained in:
parent
eb7205025c
commit
21c858b519
@ -1,9 +1,20 @@
|
||||
import React from "react";
|
||||
import classNames from "classnames";
|
||||
|
||||
type Props = {
|
||||
className?: string | undefined;
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export default function Heading({ children }: Props) {
|
||||
return <h3 className="text-2xl text-current font-medium leading-relaxed">{children}</h3>;
|
||||
export default function Heading({ children, className }: Props) {
|
||||
return (
|
||||
<h3
|
||||
className={classNames([
|
||||
className,
|
||||
"text-2xl text-current font-medium leading-7 ",
|
||||
])}
|
||||
>
|
||||
{children}
|
||||
</h3>
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user