<Form> Component

<Form> represents a document section containing interactive controls for submitting.

Note: The default styling of the <Form> is just display: block with some basic styling.
In real world, you should create <YourForm> (based on <Form>) with appropriate styling for better look.

Here the demo:

Preview

Installing <Form> Component

There are 2 ways to install <Form> component into your react app project:

  • Install the Specific Package of <Form> Component
  • Install the Whole Reusable-UI Component Pack, including the <Form> Component

Variant Properties

The alternative appearances of the <Form> layout without changing the <Form>'s functionality.

size Property

Defines the alternative size of the <Form>.

The possible values are:

  • undefined
  • 'sm'
  • 'md'
  • 'lg'

Here the preview:

Preview

Show code

theme Property

Defines the contextual theme of the <Form>.

The possible values are:

  • undefined
  • 'primary'
  • 'secondary'
  • 'success'
  • 'info'
  • 'warning'
  • 'danger'
  • 'light'
  • 'dark'

Here the preview:

Preview

Show code

gradient Property

Activates a 3D mode of the <Form>.

The possible values are:

  • undefined
  • 'inherit'
  • true
  • false

Here the preview:

Preview

Show code

outlined Property

Activates an outlined mode (background-less, contrast foreground, and contrast border) of the <Form>.

The possible values are:

  • undefined
  • 'inherit'
  • true
  • false

Here the preview:

Preview

Show code

mild Property

Activates a mild mode (mild background, contrast foreground, and contrast border) of the <Form>.

The possible values are:

  • undefined
  • 'inherit'
  • true
  • false

Here the preview:

Preview

Show code

nude Property

Activates an nude mode (background-less, padding-less, and border-less) of the <Form>.

The possible values are:

  • undefined
  • true
  • false

Here the preview:

Preview

Show code

State Properties

The conditions of the <Form> behavior or functionality.

enableValidation Property

Activates the valid/invalid indicator of the <Form>.

The possible values are:

  • undefined
  • true
  • false

isValid Property

Marks the validity status of the <Form>.

The possible values are:

  • undefined
  • null
  • true
  • false

Here the preview:

Preview

Show code

inheritValidation Property

Influences the <Form>'s valid/invalid indicator by <ancestor isValid={true|false} enableValidation={true}>.

The possible values are:

  • undefined
  • true
  • false

Variables

There are several variables of <Form> you can customize. Changing the variables affects all <Form> instance and other components that depend on <Form>.

Here the exposed variables:

  • Animations

The example of accessing, modifying, & adding variables:

Show code