Socket
Book a DemoInstallSign in
Socket

hnyform

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hnyform

A beautiful and responsive multi-step reactive React form component. Provides custom validation, formatting and is framework agnostic.

2.0.2
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
ย 
Created
Source

๐Ÿ HnyForm

HnyForm is a powerful and extensible React component library for building dynamic, validated, and beautiful multi-step forms with multiple layouts.

โœจ Features

  • โœ… Multi-step form with section-wise progress
  • ๐ŸŽจ Multiple layout variants:
    • Hnyform: Basic
    • HnyformHorizontal: Label-input horizontal layout
    • HnyformPlaceholder: Inputs with placeholders
    • HnyformBoxed: Box-styled inputs
    • HnyformUnderlineVertical: Vertical form with underline inputs
    • HnyformUnderlineHorizontal: Horizontal form with underline inputs
    • HnyformOutlined: Outlined floating-label form
    • HnyformInline: Inline compact layout
  • ๐Ÿง  Smart field validation
  • ๐Ÿ“ฆ File uploads, date/time pickers, selects, range inputs, radio/checkbox groups
  • ๐Ÿ“ Responsive cols grid layout per screen size
  • ๐Ÿ” Auth support with API submission
  • ๐ŸŒˆ Customizable color, background, and font weight

๐Ÿ“ฆ Installation

npm install hnyform

๐Ÿ”ง Usage

import {
  Hnyform,
  HnyformHorizontal,
  HnyformPlaceholder,
  HnyformBoxed,
  HnyformUnderlineVertical,
  HnyformUnderlineHorizontal,
  HnyformOutlined,
  HnyformInline
} from "hnyform";

<HnyformUnderlineHorizontal
  schema={schema}
  cols={3}
  api="https://dummyjson.com/posts/add"
  authToken="Bearer your-token-here"
/>

๐Ÿ“œ Schema Format

The form schema is grouped by sections:

const schema = {
  "Section Title": [
    {
      level: "FieldName",
      type: "text", // or 'email', 'selection', etc.
      required: true,
      validation: ["email"],
      format: ["trim", "lower"],
      options: [...], // if applicable
      span: 2 // optional
    },
    // more fields
  ],
  // more sections
};

๐Ÿ”„ Props

PropTypeDescription
schemaobjectForm schema object
apistringAPI endpoint to POST form data
authTokenstringOptional bearer token
colsnumber or arrayNumber of columns in layout
colorstringTheme color (label, border, etc.)
bgstringBackground color
boldstringFont weight for text
stepperbooleanOptional: enable step-based navigation

๐Ÿงช Example

<HnyformOutlined
  schema={schema}
  stepper
  cols={3}
  api="https://dummyjson.com/posts/add"
  authToken="Bearer your-token-here"
/>

Demo

please follow...

https://biswajeet5875.github.io/hnyform-testing/

๐Ÿ›ก๏ธ License

Biswajeet Mishra

Keywords

["react"

FAQs

Package last updated on 14 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.