@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) • 600 B
JavaScript
"use client";
import { createComponent } from "../../core/components/create-component.js";
import { codeStyle } from "./code.style.js";
//#region src/components/code/code.tsx
const { PropsContext: CodePropsContext, usePropsContext: useCodePropsContext, withContext } = createComponent("code", codeStyle);
/**
* `Code` is a component that represents a code block. By default, it renders a `code` element.
*
* @see https://yamada-ui.com/docs/components/code
*/
const Code = withContext("code")();
//#endregion
export { Code, CodePropsContext, useCodePropsContext };
//# sourceMappingURL=code.js.map