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

@schema-forms-data/renderer

v4.0.2

Published

Form renderer for SchemaForms — renders FormSchema with react-hook-form

Readme

@schema-forms-data/renderer

npm license

Renders a FormSchema as a live, multi-step form powered by react-hook-form.

Install

npm install @schema-forms-data/renderer react-hook-form lucide-react

Basic usage

import { FormRenderer } from "@schema-forms-data/renderer";
import type { FormSchema } from "@schema-forms-data/core";

const schema: FormSchema = {
  /* ... */
};

export default function Page() {
  return (
    <FormRenderer
      schema={schema}
      formTitle="Registration"
      onSubmit={(values) => console.log(values)}
    />
  );
}

Props

| Prop | Type | Default | Description | | ----------------------- | ---------------------------------------------------- | ----------------- | ---------------------------------------------------- | | schema | FormSchema | required | The form definition | | formTitle | string | "" | Title shown above the form | | template | string | "moderno" | Visual template key | | externalData | Record<string, unknown> | {} | Data available in conditions and field interpolation | | onSubmit | (values) => void\|Promise<void> | required | Called with form values on final step submit | | onStepChange | (step: number) => void | — | Called when the user navigates between steps | | uploadFile | (file: File, fieldName: string) => Promise<string> | — | Inject your own file upload logic | | cepLookup | (cep: string) => Promise<CepLookupResult> | ViaCEP public API | Inject your own CEP/zip lookup | | resolveTermsUploadUrl | (uploadId: string) => Promise<string> | — | Resolve URL of a terms PDF by its upload ID | | StepIndicator | React.ComponentType<StepIndicatorProps> | built-in | Custom step indicator component | | submitLabel | string | "Enviar" | Label of the submit button | | nextLabel | string | "Próximo" | Label of the next button | | prevLabel | string | "Voltar" | Label of the prev button |

Inject dependencies (RendererContext)

All integrations are injectable — the renderer never makes HTTP calls directly:

import { FormRenderer } from '@schema-forms-data/renderer';

<FormRenderer
  schema={schema}
  formTitle="Event Registration"
  externalData={{ eventName: 'React Conf', price: 150 }}
  uploadFile={async (file, fieldName) => {
    const url = await myApi.upload(file);
    return url;
  }}
  cepLookup={async (cep) => {
    const data = await myApi.getCep(cep);
    return { logradouro: data.street, bairro: data.district, ... };
  }}
  onSubmit={async (values) => {
    await myApi.submitRegistration(values);
  }}
/>

CSS customization

The renderer uses sfr-* CSS class names — no Tailwind or shadcn dependency:

/* Override form styles */
.sfr-input {
  /* text inputs */
}
.sfr-label {
  /* field labels */
}
.sfr-error {
  /* validation error messages */
}
.sfr-step-header {
  /* step title area */
}
.sfr-form-actions {
  /* submit/next/prev buttons area */
}

License

MIT © SchemaFormsData