Package Exports
- @tkwant/react-steps
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tkwant/react-steps) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Stepper
Npm Package: https://www.npmjs.com/package/@tkwant/react-steps
Demo: https://stepper.tkwant.de
Installation
yarn add @tkwant/react-steps
npm i @tkwant/react-steps
Usage
import React, { useState } from "react";
import { Stepper, Step } from "@tkwant/react-steps";
import "@tkwant/react-steps/dist/Stepper.css";
interface Props {}
const App: React.FC<Props> = () => {
const [curStep, setCurStep] = useState(0);
return (
<>
<Stepper curStep={curStep} setCurStep={setCurStep}>
<Step label="Step 0 " />
<Step label="Step 1" />
<Step>??</Step>
<Step />
<Step locked={curStep < 3} />
<Step locked={curStep < 4} />
<Step locked={curStep < 5} />
</Stepper>
</>
);
};
export default App;