Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

Heading

Heading is a component that represents section headings. By default, it renders an h1 element.

Source@yamada-ui/typography

Theming

The Heading is a single part component.

export const Heading: ComponentStyle<"Heading"> = {
baseStyle: {
fontFamily: "heading",
fontWeight: "bold",
},
sizes: {
xs: { fontSize: "sm" },
sm: { fontSize: "md" },
md: { fontSize: "xl" },
lg: {
fontSize: { base: "3xl", sm: "2xl" },
},
xl: {
fontSize: { base: "4xl", sm: "3xl" },
},
"2xl": {
fontSize: { base: "5xl", sm: "4xl" },
},
"3xl": {
fontSize: { base: "6xl", sm: "5xl" },
},
"4xl": {
fontSize: { base: "7xl", sm: "6xl" },
},
},
defaultProps: { size: "xl" },
}
Copied!

Edit this page on GitHub

PreviousTextNextBlockquote