UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

19 lines (18 loc) 662 B
import { jsx as _jsx } from "react/jsx-runtime"; import { forwardRef } from "react"; import classNames from "classnames"; /** * StepBar is used to display steps in a wizard 🪜🧙‍♂️ */ const StepBar = /*#__PURE__*/ forwardRef(({ className, variant = "basic", disableCollapse, ...props }, ref)=>{ return /*#__PURE__*/ _jsx("div", { ref: ref, className: classNames(className, { "bf-stepbar": variant !== "circle", "bf-stepbar-circle": variant === "circle", "bf-stepbar-responsive": !disableCollapse }), ...props }); }); StepBar.displayName = "StepBar"; export default StepBar;