feat: add textTransform prop to section headers
This commit is contained in:
@@ -12,6 +12,7 @@ export default function SectionHeader({
|
||||
subtitle,
|
||||
title,
|
||||
topTitle = false,
|
||||
textTransform,
|
||||
}: HeaderProps) {
|
||||
return (
|
||||
<header className={styles.header}>
|
||||
@@ -19,6 +20,7 @@ export default function SectionHeader({
|
||||
as={topTitle ? "h3" : "h4"}
|
||||
className={styles.title}
|
||||
level={topTitle ? "h1" : "h2"}
|
||||
textTransform={textTransform}
|
||||
>
|
||||
{title}
|
||||
</Title>
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { HeadingProps } from "@/components/TempDesignSystem/Text/Title/title"
|
||||
|
||||
export type HeaderProps = {
|
||||
link?: {
|
||||
href: string
|
||||
text: string
|
||||
}
|
||||
subtitle: string | null
|
||||
textTransform?: HeadingProps["textTransform"]
|
||||
title: string | null
|
||||
topTitle?: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user