New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@clayui/form

Package Overview
Dependencies
Maintainers
3
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clayui/form

ClayForm component

  • 3.11.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.8K
decreased by-12.01%
Maintainers
3
Weekly downloads
 
Created
Source

title: 'Form' description: 'Forms obtain user data and transmit it to the system to either store the data, produce an action, or both.' lexiconDefinition: 'https://liferay.design/lexicon/core-components/forms/' packageNpm: '@clayui/form' sibling: 'docs/components/css-form-group.html'

import {Form, FormValidation, FormText} from '$packages/clay-form/docs/index';

Use ClayForm components for composing forms.

For controlling groups inside forms, use ClayForm.Group components like the code below:

Validation

.has-error, .has-success and .has-warning classes are used in ClayForm.Group to identifier validation state of the form group items.

Use ClayForm.FeedbackGroup and ClayForm.FeedbackItem for creating custom feedback messages for Form Groups.

ClayForm.FeedbackIndicator is used to apply an Icon on the feedback message, like the following example:

Group Caption

Use ClayForm.Text for creating a caption on Form Groups.

API

Form.FeedbackIndicator

[APITable "clay-form/src/Form.tsx#ClayFormFeedbackIndicator"]

Form.Group

[APITable "clay-form/src/Form.tsx#ClayFormGroup"]

Form

Extends from {`React.HTMLAttributes`}

Form.FeedbackGroup

Extends from {`React.HTMLAttributes`}

Form.FeedbackItem

Extends from {`React.HTMLAttributes`}

Form.Text

Extends from {`React.HTMLAttributes`}

Keywords

FAQs

Package last updated on 26 Aug 2020

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