4.7.0 • Published 2 years ago

@s-ui/react-molecule-input-field v4.7.0

Weekly downloads
1,549
License
MIT
Repository
-
Last release
2 years ago

MoleculeInputField

MoleculeInputField is a component that wraps a composition of Label + Textarea + Validations Messages.

Installation

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

Usage

After importing the component MoleculeInputField like this

import MoleculeInputField from '@s-ui/react-molecule-input-field'

Basic usage

  <MoleculeInputField
    id="second"
    placeholder="Medium Input"
    leftAddon="http://"
    rightAddon="@schibsted.com"
    label="Description"
    value="In some place of La Mancha which name..."
  />

With successText

  <MoleculeInputField
    id="description2"
    label="Description"
    value="In some place of La Mancha which name..."
    successText="Everything ok!"
  />

With errorText

  <MoleculeInputField
    id="notes"
    label="Notes"
    errorText="All wrong!"
  />

With alertText

  <MoleculeInputField
    id="notes"
    label="Notes"
    alertText="All wrong!"
  />

With helpText

  <MoleculeInputField
    id="description-inline2"
    label="Description"
    helpText="Tu descripción en Latin"
    value="Lorem ipsum dolor sit amet"
  />

Inline

  <MoleculeInputField
    id="description"
    label="Description"
    value="In some place of La Mancha which name..."
    inline
  />

Find full description and more examples in the demo page.

4.7.0

2 years ago

4.6.0

2 years ago

4.5.0

3 years ago

4.4.0

3 years ago

4.3.0

3 years ago

4.2.0

3 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.5.0

4 years ago

3.4.0

4 years ago

3.3.0

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago