UNPKG

@yamada-ui/react

Version:

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

25 lines (21 loc) 881 B
"use client"; const require_create_component = require('../../core/components/create-component.cjs'); const require_text_style = require('./text.style.cjs'); //#region src/components/text/text.tsx const { PropsContext: TextPropsContext, usePropsContext: useTextPropsContext, withContext } = require_create_component.createComponent("text", require_text_style.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 exports.Text = Text; exports.TextPropsContext = TextPropsContext; exports.useTextPropsContext = useTextPropsContext; //# sourceMappingURL=text.cjs.map