Fine-Tune Card
ProNewAgent design-property inspector for width, height, radius, and opacity with live morphing preview and one-click auto-tune.
Installation
pnpm dlx shadcn@latest add @viewport/fine-tune-card
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| defaultValues | DesignValuesInitial design token values. | DEFAULTS |
| suggestedValues | DesignValuesPreset values the "Auto-tune" button animates toward. | SUGGESTED |
| onApply | (values: DesignValues) => voidCalled when the user applies the tuned properties. | — |
| className | string | — |
Accessibility
- Every property uses a real labelled range input with live numeric readouts.
- Tabular numerals keep values aligned while scrubbing.
- Preview morphing snaps directly under reduced motion.