npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

umbraco-headless-forms

v1.1.0

Published

Umbraco Headless Forms is a React npm package tailored for headless form functionality within Umbraco projects. This package specializes in rendering forms dynamically based on form id and submitting the data to Umbraco Forms seamlessly.

Readme

Umbraco Headless Forms

npm version Github: Repo License: MIT

A React component library for seamlessly integrating Umbraco Forms into headless applications. This package provides a simple way to render and handle Umbraco Forms dynamically, making it perfect for headless CMS implementations.

Overview

Umbraco Headless Forms simplifies the process of:

  • Rendering Umbraco Forms dynamically in React applications
  • Handling form submissions through the Umbraco Forms API
  • Managing form validation and conditional field logic
  • Providing a consistent user experience across headless implementations

Features

  • Render forms dynamically based on form IDs.
  • Submit form data to Umbraco Forms via API calls.
  • Streamlined integration with Umbraco Forms for headless environments.
  • Conditional rendering of form fields based on field rules.

Supported Form Fields

| Form Field | Supported | | -------------------------------- | --------- | | Short answer | ✅ | | Long answer | ✅ | | Dropdown | ✅ | | File upload | ✅ | | Checkbox | ✅ | | Date | ✅ | | Multiple choice | ✅ | | Single choice | ✅ | | Password | ✅ | | Data Consent | ✅ | | Title and description | ✅ | | Rich text | ✅ | | Hidden | ✅ | | Recaptcha V2 (google) | ❌ | | Recaptcha V3 with Score (google) | ❌ |

Prerequisites

  • Node.js 16.x or higher
  • React 16.8+ (for Hooks support)
  • An Umbraco CMS instance with Umbraco Forms installed
  • Umbraco Forms API enabled and configured

Installation

Using npm:

npm install umbraco-headless-forms

Using yarn:

yarn add umbraco-headless-forms

Getting Started

  1. Set up Umbraco Forms in your Umbraco CMS.
  2. Enable Umbraco Forms API in your Umbraco CMS.
  3. Create a Umbraco Forms form.
  4. Get the form ID from the Umbraco Forms form.
  5. Get the API key from the Umbraco Forms API.
  6. Paste the formId, umbracoUrl and apiKey into the UmbracoForm component.

Usage

Use it in a existing React project or create a new React project.

import { UmbracoForm } from "umbraco-headless-forms";

// Form will be rendered with buttons, pages and fields based on form ID
export default function App() {
  return <UmbracoForm formId={formId} baseUrl={baseUrl} apiKey={apiKey} />;
}

Styling

Overwrite the default styles with your own styles.

.umb-h-form {
  /* targeting <form> element */
}

.umb-h-submit {
  /* targeting <button type="submit"> tag */
}

.umb-h-button {
  /* targeting <button> tag eg. Next, Previous page */
}

.umb-h-input {
  /* targeting <input> tag */
}

.umb-h-select {
  /* targeting <select> tag */
}

.umb-h-h4 {
  /* targeting <h4>, form header */
}

.umb-h-footer {
  /* Targeting div containing submit and paging buttons */
}

.umb-h-fieldCaption {
  /* Targeting <label> tag */
}

.umb-h-legend {
  /* Targeting <legend> tag */
}

.umb-h-indicator {
  /* Targeting Required* / Optional, symbol can be set in Umbraco Forms */
}

.umb-h-helpText {
  /* Targeting help text beneath input */
}

.umb-h-requiredMessage {
  /* Targeting required message */
}

.umb-h-patternInvalidMessage {
  /* Targeting pattern invalid message */
}

.umb-h-container {
  /* Targeting container */
}

.umb-h-pageSelector {
  /* Targeting page selector */
}

.umb-h-messageOnSubmit {
  /* Targeting message on submit */
}

.umb-h-validationSummary {
  /* Targeting validation summary */
}

Contributions

Please feel free to submit issues, feature requests, or pull requests.

License

This project is licensed under the ISC License.

Complete Example

import { UmbracoForm } from "umbraco-headless-forms";

export default function App() {
  return (
    <div className="my-form-container">
      <UmbracoForm formId="your-form-id" baseUrl="https://your-umbraco-instance.com" apiKey="your-api-key" />
    </div>
  );
}

Author

Janik Sunke

Contact

For inquiries, reach out to [email protected].