UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

23 lines (19 loc) 753 B
"use client"; import { createComponent } from "../../core/components/create-component.js"; import { textStyle } from "./text.style.js"; //#region src/components/text/text.tsx const { PropsContext: TextPropsContext, usePropsContext: useTextPropsContext, withContext } = createComponent("text", textStyle); /** * `Text` is a component that represents a paragraph of text. By default, it renders a `p` element. * * @see https://yamada-ui.com/docs/components/text */ const Text = withContext("p")(void 0, ({ align: textAlign, casing: textTransform, decoration: textDecoration,...rest }) => ({ textAlign, textDecoration, textTransform, ...rest })); //#endregion export { Text, TextPropsContext, useTextPropsContext }; //# sourceMappingURL=text.js.map