@highlight-ui/progress-tracker
v3.3.1
Published
A progress tracker for use in wizards
Maintainers
Keywords
Readme
@highlight-ui/progress-tracker
Using npm:
npm install @highlight-ui/progress-trackerUsing yarn:
yarn add @highlight-ui/progress-trackerUsing pnpm:
pnpm install @highlight-ui/progress-trackerIn your (S)CSS file:
@import url('@highlight-ui/progress-tracker');Once the package is installed, you can import the library:
import { ProgressTracker } from '@highlight-ui/progress-tracker';Usage
import React from 'react';
import { ProgressTracker } from '@highlight-ui/progress-tracker';
export default function ProgressTrackerExample() {
return (
<ProgressTracker
stepNames={[
'First step with a really, really long step name so you can trigger line wrapping ',
'Second step with not so long a name',
'Third step',
'Fourth',
]}
currentStepIndex={1}
/>
);
}Props 📜
| Prop | Type | Required | Default | Description |
| :----------------- | :--------- | :------- | :------ | :--------------------------------------------------------------------------------------- |
| stepNames | string[] | Yes | | Specify the unique step names to display |
| currentStepIndex | number | Yes | | Specify the active step index. This updates the style for active and previous step names |
| className | string | No | | Allows providing a custom classname |
Contributing 🖌️
Please visit personio.design for usage guidelines and visual examples.
If you're interested in contributing, please visit our contribution page.
