Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@s-ui/react-molecule-field

Package Overview
Dependencies
Maintainers
75
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/react-molecule-field

  • 1.39.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
decreased by-31.39%
Maintainers
75
Weekly downloads
 
Created
Source

MoleculeField

MoleculeField is a component that wraps a composition of Label + some input (input, textarea, ...) + Validations Messages.

Installation

$ npm install @s-ui/react-molecule-field --save

Usage

After importing the component MoleculeField like this

import MoleculeField from '@s-ui/react-molecule-field'

Basic usage

  <MoleculeField label="name" name="name">
    <input id="name" type="text"/>
  </MoleculeField>

With Error Message

<MoleculeField label="surname" name="surname" errorText="Error!">
  <input id="surname" type="text"/>
</MoleculeField>

With Success Message

  <MoleculeField label="address" name="address" successText="Success!">
    <input id="address" type="text"/>
  </MoleculeField>

With Alert Message

  <MoleculeField label="address" name="address" alertText="Alert!">
    <input id="address" type="text"/>
  </MoleculeField>

With Help Text


<MoleculeField label="country" name="country" helpText="Read the instructions to write proper format">
  <input id="country" type="text"/>
</MoleculeField>

Inline

<MoleculeField inline label="city" name="city">
  <input id="city" type="text"/>
</MoleculeField>

Find full description and more examples in the demo page.

FAQs

Package last updated on 04 Apr 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc