reshaped

Reshaped Progress indicator

Component 6

About

Dot-based step indicator that takes a total amount of steps and the current activeIndex as a controlled component. Pairs with Carousel and Pagination for syncing scroll or navigation state, and supports a media color for static dark backgrounds.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Reshaped Progress indicator to your project and fits it to your theme.

Code

How Reshaped Progress indicator is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import * as React from "react";
import { Button, Reshaped, View } from "reshaped/bundle";
import ProgressIndicator from "@/components/ui/reshaped-progress-indicator";

function Component() {
  const total = 5;
  const [activeIndex, setActiveIndex] = React.useState(0);
  return (
    <View gap={4}>
      <View direction="row" gap={2} align="center">
        <Button
          onClick={() => {
            setActiveIndex((prev) => Math.max(0, prev - 1));
          }}
        >
          Previous
        </Button>
        <Button
          onClick={() => {
            setActiveIndex((prev) => Math.min(total - 1, prev + 1));
          }}
        >
          Next
        </Button>
      </View>
      <ProgressIndicator total={total} activeIndex={activeIndex} />
    </View>
  );
}

export default function Demo() {
  return (
    <Reshaped theme="slate">
      <div style={{ margin: "0 auto", padding: 24, display: "flex", justifyContent: "center" }}>
        <Component />
      </div>
    </Reshaped>
  );
}

Dependencies

More by reshaped

View all
  • Reshaped Toast

    Reshaped Toast

    9
  • Reshaped Calendar

    Reshaped Calendar

    9
  • Reshaped Context menu

    Reshaped Context menu

    7
  • Reshaped Checkbox

    Reshaped Checkbox

    7
  • Reshaped Autocomplete

    Reshaped Autocomplete

    7
  • Reshaped Pagination

    Reshaped Pagination

    6
  • Reshaped Carousel

    Reshaped Carousel

    6
  • Reshaped Slider

    Reshaped Slider

    5