UNPKG

@yamada-ui/stepper

Version:

Yamada UI stepper component

36 lines (34 loc) 814 B
"use client" import { useStepContext } from "./chunk-ABUIE4CG.mjs"; import { useStepperContext } from "./chunk-CGZP2FXU.mjs"; // src/step-title.tsx import { forwardRef, ui } from "@yamada-ui/core"; import { cx } from "@yamada-ui/utils"; import { jsx } from "react/jsx-runtime"; var StepTitle = forwardRef( ({ className, ...rest }, ref) => { const { styles } = useStepperContext(); const { status } = useStepContext(); const css = { ...styles.title }; return /* @__PURE__ */ jsx( ui.h3, { ref, className: cx("ui-step__title", className), "data-status": status, __css: css, ...rest } ); } ); StepTitle.displayName = "StepTitle"; StepTitle.__ui__ = "StepTitle"; export { StepTitle }; //# sourceMappingURL=chunk-VYZV44UU.mjs.map