Routing for a booking form: if company size is over 50 and the region is Europe, send it to Sales EU. Drag routes into order, see what share of last month each one caught, test a response to watch it land, and export the lot as one CASE WHEN.
akarouting form·lead routing·routing rules
Powered by Qnot · the rules, matching and serialisation are Qnot; this is the UI on top.
Run this in any project set up for the shadcn CLI. It copies the Routing Rules source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/routing-rules.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { RoutingRules } from "@/components/routing-rules";
export default function Page() {
return <RoutingRules />;
}A free React component in the Filters collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Routing Rules source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| title | string | "Request routing" |
| description | string | "Checked top to bottom. The first route that matches wins." |
| fieldsrequired | Fields | — |
| destinationsrequired | RouteDestination[] | — |
| routesrequired | Route[] | — |
| fallbackrequired | string | — |
| history | readonly Record<string, unknown>[] | [] |
| sampleResponserequired | Record<string, unknown> | — |
| onChange | (routes: Route[], fallback: string) => void | — |
| className | string | — |