Primitive 14 / Policy rule editor

Policy rule editor

Build a policy rule by choosing each piece from a chip-style select. The compiled preview line at the bottom is the human-readable rendering of the rule, in real time. Outcome is a binary Allow / Deny toggle styled as a segmented pill.

Production answer

Policy rule editor is a reusable Oak Flats Muffler Men UI primitive with documented states, accessibility expectations, theme behavior, and implementation evidence.

Primary CTAReview Policy rule editor states
Generative search brief

Policy rule editor: Build a policy rule by choosing each piece from a chip-style select. The compiled preview line at the bottom is the human-readable rendering of the rule, in real time. Outcome is a binary Allow / Deny toggle styled as a segmented pill.

Live primitive
Policy ruleChip-select each piece — preview compiles below.
When
on
if
then
because
Compiled preview

When approve a quote on a quote above $4,000, if it is outside 06:00–18:00 AEST, then DENY because after-hours operations are blocked.