This commit is contained in:
tmshv committed 2022-10-12 15:52:27 +06:00
1 parent f899f75780
commit 73566d3aca
10 files changed
+92 -51

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { createElement } from "react"
export type TitleProps = {
level?: 1 | 2 | 3 | 4 | 5 | 6
children?: React.ReactNode
className?: string
style?: React.CSSProperties
}
export const Title: React.FC<TitleProps> = ({ level = 1, children, ...props }) => {
return createElement(`h${level}`, props, children)
}