# Progress Submit

> A submit button that fills as its form gets filled in and turns on when the fill reaches the end, then shows a spinner and a check while it submits. The label inverts exactly where the fill's edge passes through it.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › Buttons |
| Live preview | https://uibrik.com/components/progress-submit |
| Writes | 1 file into `components/uibrik/progress-submit/` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 30, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/progress-submit.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/progress-submit`.

Can't run commands? https://uibrik.com/components/progress-submit/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { ProgressSubmit } from "@/components/uibrik/progress-submit/progress-submit";

<ProgressSubmit
  children="Create account"
  duration={0.45}
  radius={12}
  status="idle"
  icon={<IconCircleArrowRightFilled />}
  doneIcon={<IconCircleCheckFilled />}
  onIncomplete={() => {}}
  // progress={0}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/progress-submit.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `children` | `string` | `"Create account"` | The label. |
| `duration` | `number` | `0.45` | How long the fill takes to reach a new value. |
| `radius` | `number` | `12` | Corner radius. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `progress` | `number` |  | How much of the form is done, 0 to 1. The button turns on at 1. |
| `onIncomplete` | `() => void` |  | Called when the button is clicked before the form is complete, e.g. to focus the first empty field. |
| `status` | `"idle" \| "loading" \| "done"` | `"idle"` | While submitting: a spinner, then a check. Change the label alongside it and it eases in. |
| `icon` | `ReactNode` | `<IconCircleArrowRightFilled />` | Rises in after the label once the form is complete. Pass null for none. |
| `doneIcon` | `ReactNode` | `<IconCircleCheckFilled />` | Shown after the label when status is done. |
| `...button props` | `ButtonHTMLAttributes` |  | onClick, type (default submit), disabled, className and the rest pass through. |

## Where it fits

- **Sign-up and checkout forms**: The button shows how much is left, so nobody wonders why it won't click.
- **Settings with required fields**: Clicking early nudges the button and can focus the first empty field. Pairs with [Unsaved Changes](https://uibrik.com/components/unsaved-changes.md) (Pro).
- **Multi-step onboarding**: Pass the share of steps done and the same fill tracks the whole flow.

## Same shelf: Buttons

- [Share Menu](https://uibrik.com/components/share-menu.md): A share button that flips open into a pill of options, resizing to fit.
- [Soft Button](https://uibrik.com/components/soft-button.md): A plain button made with care: a gentle top-to-bottom gradient, a faint inner highlight and shade, and a crisp border, in primary, secondary and accent.
- [Split Button](https://uibrik.com/components/split-button.md): A primary button with a menu of alternative actions; the chosen one rolls into the main label.
- [Stepper Button](https://uibrik.com/components/stepper-button.md): An add-to-cart button that reshapes into a quantity stepper in the same pill.
- [Tactile Toggle](https://uibrik.com/components/tactile-toggle.md): A single switch whose knob squishes under the finger, drags like the real thing and springs home on release.
- [Theme Switch](https://uibrik.com/components/theme-switch.md): Switches the page theme: the sun pulls in its rays and is eclipsed into a moon while the new theme spreads out from the button.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/progress-submit/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
