# Effort Dial

> A gauge for customer effort scores: a gradient arc fills from green toward red as the knob follows your finger, ticks light as it passes, it settles into the nearest answer, and a hard answer asks what got in the way.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › Feedback |
| Live preview | https://uibrik.com/components/effort-dial |
| Writes | 1 file into `components/uibrik/effort-dial/` |
| Packages | `@tabler/icons-react`, `motion`, `react-use-measure` (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 23, 2026 |

## Add it

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

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

Can't run commands? https://uibrik.com/components/effort-dial/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 { EffortDial } from "@/components/uibrik/effort-dial/effort-dial";

const labels = ["Very easy", "Easy", "Okay", "Hard", "Very hard"];

const colors = ["#16a35a", "#84cc16", "#eab308", "#f97316", "#e5484d"];

<EffortDial
  prompt="How easy was it to get set up?"
  labels={labels}
  colors={colors}
  hardPrompt="What got in the way?"
  width={360}
  defaultValue={null}
  submitLabel="Send"
  thanksLabel="Thanks, that helps"
  onSubmit={(feedback) => {}}
  // value={0}
  // onChange={(score) => {}}
/>
```

## Tune it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `prompt` | `string` | `"How easy was it to get set up?"` | The question above the dial. |
| `labels` | `string[]` | `["Very easy","Easy","Okay","Hard","Very hard"]` | One answer per segment, easiest first. Three to seven. |
| `colors` | `string[]` | `["#16a35a","#84cc16","#eab308","#f97316","#e5484d"]` | Gradient stops from easiest to hardest. |
| `hardPrompt` | `string` | `"What got in the way?"` | Asked when the answer is one of the two hardest. Empty skips it. |
| `width` | `number` | `360` | Width of the card; never wider than its container. |

## Wire it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `value / onChange` | `number \| null / (score) => void` |  | Controlled answer, 1 for the easiest, null for none. |
| `defaultValue` | `number \| null` | `null` | Answer on mount when uncontrolled. |
| `onSubmit` | `(feedback: { score, label, comment }) => void \| Promise` |  | Called when sent. Return a promise to hold the button in a sending state; a rejection keeps the card open. |
| `submitLabel / thanksLabel` | `string` |  | Send button text and the line shown once sent. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Setup and onboarding**: Asking how easy it was right after setup catches friction while it's fresh.
- **Support resolutions**: A customer effort score after a ticket closes tracks how hard help was to get.
- **Checkout and forms**: A hard answer opens a note, so the score comes with the reason behind it. Pairs with [NPS Strip](https://uibrik.com/components/nps-strip.md).

## Same shelf: Feedback

- [Feature Votes](https://uibrik.com/components/feature-votes.md) (Pro): A ranked, scrolling board of feature requests: a vote rolls the count and glides the row to its new rank with a chip for how far it climbed, coloured status pills filter the list, and opening a row shows the details, who voted and a thread you flip through by tapping faces, with a reply field.
- [NPS Strip](https://uibrik.com/components/nps-strip.md): A 0 to 10 recommend score on one track: the pick slides between scores in its group's colour, a band below lights the group, and the follow-up question changes for detractors, passives and promoters.
- [Pin Comment](https://uibrik.com/components/pin-comment.md) (Pro): Comment mode for any part of a page: a dock below the content turns it on, an outline glides to whatever is under the pointer and names it, a click drops a pin with your face and a composer that records the element and position, and pins open into threads you can resolve.
- [Rating Feedback](https://uibrik.com/components/rating-feedback.md) (Pro): A pill of stars that grows into a card: a low rating asks what went wrong, a high one opens a review box, and sending folds it into a thank-you pill whose check draws itself.

## Ground rules

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