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

@contentful/f36-validation-message

Package Overview
Dependencies
Maintainers
100
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-validation-message

Forma 36: ValidationMessage component

  • 4.0.1-next-v4-6282.2214
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-95.16%
Maintainers
100
Weekly downloads
 
Created
Source

title: 'ValidationMessage' type: 'component' status: 'stable' slug: /components/validation-message/ github: 'https://github.com/contentful/forma-36/tree/master/packages/components/validation-message' storybook: 'https://f36-storybook.contentful.com/?path=/story/components-validationmessage--default' typescript: ./src/ValidationMessage.tsx

ValidationMessage provides a consistent styled paragraph for messages in case of validation errors.

Table of contents

How to use ValidationMessage

Only use this component in the context of a form and as corresponding guidance to an input field which has validations

Code examples

<React.Fragment>
  <FormLabel htmlFor="name" required>
    Full name
  </FormLabel>
  <TextInput
    name="name"
    value="Claus Mitchell"
    className="f36-margin-bottom--xs"
  />
  <ValidationMessage>Name is a required field</ValidationMessage>
</React.Fragment>

Content recommendations

  • Avoid negative words and tone
  • Give direction on how to fix the error
  • Use direct, succinct copy. Do not preface the instructions with introductory text, such as "please"
  • To add additional context, link out to documentation
  • Do not use punctuation
  • Use sentence style caps (in which only the first word of a sentence or term is capitalized)

Props

import { Props } from '@contentful/f36-docs-utils';

FAQs

Package last updated on 17 Aug 2021

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