@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
18 lines (14 loc) • 646 B
JavaScript
"use client";
import { createComponent } from "../../core/components/create-component.js";
import { headingStyle } from "./heading.style.js";
//#region src/components/heading/heading.tsx
const { PropsContext: HeadingPropsContext, usePropsContext: useHeadingPropsContext, withContext } = createComponent("heading", headingStyle);
/**
* `Heading` is a component that represents section headings. By default, it renders an `h1` element.
*
* @see https://yamada-ui.com/docs/components/heading
*/
const Heading = withContext("h1")();
//#endregion
export { Heading, HeadingPropsContext, useHeadingPropsContext };
//# sourceMappingURL=heading.js.map