About

About Bollard UI

Bollard UI is an open-source registry of copy-paste React components designed to catch expensive human mistakes in forms, checkouts, and destructive actions before they happen.

What Bollard UI is

Bollard UI is an open-source registry of copy-paste React components built by Tushar Khadde (@devtushark) to stop expensive user mistakes in web applications. Unlike schema validation libraries like Zod that enforce types on submit or blur, and unlike generic modal dialogs that people dismiss on autopilot, Bollard UI provides proactive, inline UX guardrails—catching extra zeros in currency fields, detecting mistyped email domains, and requiring typed confirmations for destructive actions—right inside your existing shadcn and Tailwind setup.

Who builds Bollard UI

Bollard UI is conceived, designed, and maintained by Tushar Khadde (@devtushark).

The project was born out of real-world production incidents where simple typos or ambiguous UI prompts caused substantial financial loss, customer churn, and database corruption. Rather than treating safety as an afterthought or burying users under generic warning popups, Bollard UI provides deliberate, ergonomic front-end guardrails that feel native to modern React workflows.

The mission: Stopping preventable UI disasters

In maritime and civil engineering, a bollard is a sturdy, grounded post designed to prevent vehicles from colliding into pedestrian zones and to moor ships safely against unexpected surges.

Bollard UI serves the exact same role in web software: it acts as a sturdy structural guardrail for risky user interactions. Typical points of failure include:

  • Currency inputs: Users inadvertently typing an extra zero (turning $1,000 into $10,000) or misreading commas and decimal points across international numbering systems.
  • Email signups: Prospective customers mistyping common domains (such as gmial.com or con instead of com), resulting in failed signups and undelivered receipts.
  • Destructive operations: Engineers or admins deleting entire customer workspaces because a popup asked "Are you sure?" and their finger clicked OK on autopilot.
  • Duplicate submissions: Buyers double-clicking purchase buttons during momentary network latency, triggering dual credit card charges.

How Bollard UI differs from validation and dialogs

It is common to confuse UX guardrails with schema validation or modal dialogs, but they address entirely different failure modes:

  • Complementary to Zod: Zod validates shape and type constraints at form boundaries (e.g. "is this string an integer?"). It cannot detect whether a valid $10,000 transfer was intended to be $1,000. Bollard UI warns the user before submission about surprising values while keeping Zod schemas intact.
  • Complementary to React Hook Form: React Hook Form manages form state, dirty tracking, and submission event lifecycles. Bollard UI components are drop-in UI controls that seamlessly plug into React Hook Form via standard props or Controller.
  • Superior to generic confirm dialogs: Generic "Are you sure?" modals condition users to click the primary action without reading. Bollard UI utilizes cognitive friction—such as requiring users to type the exact repository slug or hold a button for three seconds—forcing conscious intent for irreversible actions.

Architecture and engineering principles

Bollard UI follows modern React and web platform best practices:

  • Copy-paste ownership: Like shadcn/ui, code lives directly in your repository. You own the markup, styling, and behavior. There are no black-box node_modules dependencies.
  • Built for modern React: Fully compatible with React 19+, Next.js App Router Server Components, Vite, and Tailwind CSS v4.
  • Full accessibility: Every component is engineered with appropriate WAI-ARIA attributes, focus traps, screen-reader announcements, and keyboard navigability.
  • Server-first security boundary: Client guardrails assist honest users; they never substitute for server authorization, cryptographic signatures, or database constraints.

Why not just validation or a confirm dialog?

They answer different questions. Keep them; Bollard UI covers the gap between “valid” and “what the user meant”.

  • Schema validation

    Zod, native required / pattern

    Answers: Is this value allowed?

    ₹24,000 is a perfectly valid amount. So is alex@gmial.com. Validation passes both.

    Asks whether it is what the user meant: “10× your usual. Extra zero?”

  • A confirm dialog

    “Are you sure?”

    Answers: Did you click on purpose?

    People learn to press OK without reading. The dialog rarely says what will actually happen.

    Reads back the consequence (which 1,204 rows, which account, which environment) before the click counts.

  • Server-side checks

    Authorization, rate limits, constraints

    Answers: Is this request allowed at all?

    Still required, and Bollard UI doesn't replace them. They just answer after the request is sent.

    Catches the honest mistake earlier, while the user can still fix it, with the server as the real backstop.

Small pauses prevent expensive mistakes

Fictional scenarios, not customer claims. Bollard contributes a clear moment to review; your product’s server-side controls still enforce the decision.

  1. 01

    A transfer draft

    A reviewer spots one extra zero before a fictional customer sends a monthly supplier payment.

  2. 02

    A workspace cleanup

    A typed readback makes a fictional team pause before removing the only owner from a workspace.

  3. 03

    An agent request

    A human sees that a fictional agent action reaches production data and chooses not to approve it.

Bollard UI facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component count341 copy-paste components
Categories & Flows11 categories across 9 application flows
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
ArchitectureCopy-paste into your repository via shadcn CLI (zero node_modules bloat)
Software requirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR / Next.js supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Default install commandnpx shadcn@4.21.0 add @bollard/<component>
Core limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Practical React form safety guides

Browse all guides

License and contact

Bollard UI is 100% open-source and released under the MIT License. You are free to use it in commercial applications, open-source projects, or internal tools without restriction.

To report security vulnerabilities, visit GitHub security advisories. For feedback, feature requests, or component ideas, open an issue on the GitHub repository.