New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mod-react-components

Package Overview
Dependencies
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mod-react-components

This package is created to be used in react projects. It helps streamline development by providing flexible reusable react components like:

latest
npmnpm
Version
4.0.3
Version published
Weekly downloads
71
44.9%
Maintainers
3
Weekly downloads
 
Created
Source

About

This package is created to be used in react projects. It helps streamline development by providing flexible reusable react components like:

  • Accordion
  • Expand Collapse
  • Form
  • Form Controls
    • Button
    • Checkbox
    • Datepicker
    • Input
    • Label
    • Radio
    • Select
  • Headline
  • Iframe
  • Modal
  • Tab
  • Toast

Installation

Packge can be installed using

npm i mod-react-components

Usage

Form component example:

Include the CSS from this package at top level of your app only once and then import the required component wherever needed.

import 'mod-react-components/dist/index.css'
import { Form, Input } from 'mod-react-components'

function InformatioForm() {
  const defaultValues = {
    firstName: '',
    lastName: '',
    email: '',
    phone: ''
  }

  const [value, setValue] = useState(defaultValues)
  const [showModal, setShowModal] = useState(false)

  const handleInputChange = (e) => {
    setValue({ ...value, [e.target.name]: e.target.value })
  }

  const handleSubmit = () => {
    setShowModal(true)
  }

  return (
    <Form onSubmit={handleSubmit}>
      <Form.Step title="Personal Information">
        <Input type="text" name="firstName" value={value.firstName} onChange={handleInputChange} data-required="firstName" placeholder="First Name" />
        <Input type="text" name="lastName" value={value.lastName} onChange={handleInputChange} data-required="lastName" placeholder="Last Name" />
      </Form.Step>
      <Form.Step title="Contact Information">
        <Input type="email" name="email" value={value.email} onChange={handleInputChange} data-required="email" placeholder="Email Address" />
        <Input type="text" name="phone" value={value.phone} onChange={handleInputChange} data-required="phone" placeholder="Phone Number" />
      </Form.Step>
    </Form>
  )
}

License

This project is licensed under the MIT license.

Copyright (c) 2021 Modernize.

FAQs

Package last updated on 25 Feb 2026

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