Destructive actions
Type the exact target
Try it
MIT341 open-source React components
341 open-source MIT shadcn guards catch the extra zero, email typo, or risky agent action while there's still time to fix it.
Requires React 19 and Tailwind CSS v4.
A rent payment field with a usual amount of ₹24,000. Someone types ₹2,40,000; the amount input reads it back and asks “Extra zero?”, offering a one-tap fix to ₹24,000.
Build for the risky moment
Focused recipes for payments, account creation, destructive changes and agent actions.
Payments and checkout
Add amount readbacks, duplicate-submit protection and recipient checks to the moments where a small form mistake is expensive.
See the recipeDestructive account actions
Replace habitual confirmation dialogs with readbacks, typed acknowledgements and recovery windows that match the consequence of the action.
See the recipeAI agent safety
Show the action, scope and consequence before an agent sends a message, changes data or uses a sensitive value.
See the recipeSign-up and account creation
Pair a typo-aware email field with a pending-aware submit action, then verify ownership server-side before activating the account.
See the recipePlayground
Five real components, five classic mistakes. Make each one and watch the guard catch it, then copy the one you need.
The library
Swipe through real components from the registry.
Destructive actions
Try it
Recovery paths
Try it
Payments
Try it
India
Try it
India
Try it
Agent safety
Try it
Messaging
Try it
Payments
Try it
Sign-up
Try it
Agent safety
Try it
Dev tools
Try it
Scheduling
Try it
Sign-up
Try it
India
Try it
India
Try it
Sign-in
Try it
Without vs with
Validation checks that a value is allowed. Bollard checks that it's what the person meant. Flip the switch and send the same ₹2,40,000.
That's 10× the usual ₹24,000. Extra zero?
Browse by flow
Every component is filed under the places its mistake happens. Hover a flow to see one caught.
Agent safety · human in the loop
The agent says “deploy the reviewed release.” The human sees the actual production command, risk, and undo path before choosing.
Agent says“Deploy the reviewed release”
This willRuns deploy to prod.
deploy to prod
Starter packs
Each pack installs the related guards together. Start with one, then add pieces from the catalog.
Payments, transfers and high-stakes amounts.
@bollard/fintech-packHuman-in-the-loop checks for AI actions.
@bollard/agent-packDestructive changes with a recovery path.
@bollard/danger-zone-packIndia-aware IDs, payments and amounts.
@bollard/india-packHow it works
Bollard works like shadcn/ui: source you own, styled by your Tailwind theme. Keeping your own inputs? Attach the headless field hook instead.
Run one shadcn command. @bollard is on the official registry index, so you don't edit components.json. Requires React 19 and Tailwind CSS v4.
Keep your theme and change the copied source whenever you like.
$
import { AmountInput } from "@/components/ui/amount-input"
export function RentField() {
return (
<AmountInput
label="Monthly rent"
locale="en-IN"
currency="INR"
typical={24000} // 2,40,000 asks "Extra zero?"
/>
)
}Community
Browse the code, meet the people who contribute, or start with the person building Bollard UI.
FAQ
Bollard UI is a library of copy-paste React components that help prevent mistakes in forms and critical actions, plus a headless validation hook for your existing controls.
They make risky inputs and actions easier to review with clear readbacks, validation, pending states, confirmations and recovery paths. Your app still owns server-side validation and authorization.
Yes. Every component is MIT licensed, free for personal and commercial projects. Keep the license notice and do what you like with the code.
It needs a shadcn setup, not shadcn's components. The CLI uses your Tailwind v4 theme and copies the code into your app.
Run its shadcn CLI command. The source is copied into your project, and any extra dependencies are listed for you.
Yes. It targets React 19 and Tailwind v4 with TypeScript-friendly source, and components are safe to render on the server.
Yes. The copied source belongs to your app: edit its styles, behavior and copy to fit your product.
Start with one field. It takes a minute, and the code is yours.
That's 10× the usual ₹24,000. Extra zero?