Heading
Heading is a component that represents section headings. By default, it renders an h1 element.
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
<Heading>ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼</Heading>
Usage
import { Heading } from "@yamada-ui/react"
import { Heading } from "@/components/ui"
import { Heading } from "@workspaces/ui"
<Heading />
Change Size
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
<VStack>
<For
each={[
{ as: "h1", size: "4xl" },
{ as: "h2", size: "3xl" },
{ as: "h2", size: "2xl" },
{ as: "h3", size: "xl" },
{ as: "h3", size: "lg" },
{ as: "h4", size: "md" },
{ as: "h5", size: "sm" },
{ as: "h6", size: "xs" },
]}
>
{({ as, size }, index) => (
<Heading key={index} as={as} size={size} truncated>
ć®ć£ć«ć®ćć³ćć£ć¼ćććć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
</Heading>
)}
</For>
</VStack>
Add Gradient
ćÆćŖćŖć³ć®ććØćā¦ā¦ćÆćŖćŖć³ć®ććØćć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
<Heading
size="2xl"
bgClip="text"
bgGradient="linear(to-l, #7928CA, #FF0080)"
truncated
w="full"
>
ćÆćŖćŖć³ć®ććØćā¦ā¦ćÆćŖćŖć³ć®ććØćć¼ć¼ć¼ć£ļ¼ļ¼ļ¼ļ¼ļ¼
</Heading>
Props
Similar Components
Blockquote
Blockquote is a component that represents a quotation. By default, it renders a blockquote element.
Code
Code is a component that represents a code block. By default, it renders a code element.
Em
Em is a component that represents emphasized text. By default, it renders a em element.
Highlight
Highlight is a component that highlights specified strings within text. By default, it renders a p element.
Kbd
Kbd is a component that represents keyboard input.
Mark
Mark is a component that emphasizes a specific part of the text.
Text
Text is a component that represents a paragraph of text. By default, it renders a p element.
Link
Link is a component for creating hyperlinks to different web pages, locations within the same page, or other URLs.