# Application Form: Threshold Slider Form

Alert threshold form with paired warning and critical sliders, live readouts, a zone bar that redraws as thumbs move, and a duration select.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/threshold-slider-form
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Forms](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/threshold-slider-form.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-forms-threshold-slider-form
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, label, select, slider
- Installs to: `@/components/blocks/application-pro/forms/threshold-slider-form`

## About this block

Threshold Slider Form sets CPU alert levels with paired
sliders. Warning and critical thresholds each carry a live
percentage readout, and a zone bar below them redraws the
ok, warning, and critical bands as the thumbs move. A
sustained duration select controls how long usage must stay
over a threshold before an alert fires.

Both thresholds live in state and the critical value is
validated to stay above warning; when it drops below, the
helper line turns into a concrete correction naming the
warning percent and Save thresholds disables. The zone bar
is a flex row of three spans whose widths come straight from
the two values, so the preview can never drift from the
numbers it describes.

## When to use

Reach for this block on a monitoring or alerting settings
page, wired to your metrics backend. The paired slider shape
suits any bounded metric where two ordered thresholds define
severity: CPU, memory, disk, queue depth, or error rate.

A natural flow around it on an Application Pro page:

**Before**

- [Status health](https://www.shadcn-ui-blocks.com/blocks/application-pro/status-health)

**After**

- [Notifications](https://www.shadcn-ui-blocks.com/blocks/application-pro/notifications)
- [Settings pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

## What you can display

One strong use is a host CPU alert rule. Other paired
threshold forms:

- **Memory pressure.** Warning and critical percent with a
  duration window to filter short spikes.
- **Error rate.** Two thresholds on requests per minute with
  a paging step at the critical band.
- **Budget alerts.** Soft and hard spend limits on one bar
  with a monthly reset note in the helper.

> Tip: driving the zone bar widths from the same state as the
> readouts is what keeps the preview honest as thumbs move.

## More in Application Forms

- [Address Form Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/address-form-card)
- [API Token Create Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/api-token-create-form)
- [Bulk Import CSV Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/bulk-import-csv-card)
- [Conditional Fields Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/conditional-fields-form)
- [Create Project Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/create-project-form)
- [Cron Schedule Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/cron-schedule-form)
- [Danger Zone Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/danger-zone-form)
- [Date Range Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/date-range-form)
- [Feedback Form Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/feedback-form-card)
- [File Field Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/file-field-form)
- [Inline Edit Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/inline-edit-form)
- [Inline Validation Fields](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/inline-validation-fields)
- [Managed Fields Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/managed-fields-form)
- [Multi Step Form Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/multi-step-form-panel)
- [Notification Matrix Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/notification-matrix-form)
- [Password Strength Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/password-strength-form)
- [Payment Details Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/payment-details-form)
- [Query Builder Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/query-builder-form)
- [Repeatable Rows Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/repeatable-rows-form)
- [Review and Submit Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/review-and-submit-card)
- [Rich Text Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/rich-text-form)
- [Searchable Select Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/searchable-select-blueprint)
- [Settings Form Two Col](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/settings-form-two-col)
- [Stepper Wizard Review](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/stepper-wizard-review)
- [Tag Input Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/tag-input-form)
- [Unsaved Changes Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/unsaved-changes-form)
- [Validation States Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/validation-states-form)
- [View Only Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/view-only-form)
- [Weekly Hours Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/weekly-hours-form)
