form-field

v4.15.0arrow_drop_down
v4.15.0
STATUS
Passing
DOWNLOADS
376
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
N/A
The label used above the input element.
1 contributor
Install form-field as a package?
Copied
npm i @bit/segmentio.evergreen.form-field
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right

The label used above the input element.

Passed on the label as a htmlFor prop.

Wether or not show a asterix after the label.

A optional description of the field under the label, above the input element.

A optional hint under the input element.

If a validation message is passed it is shown under the input element and above the hint. This is unaffected by isInvalid.

Composes the dimensions spec from the Box primitivie.

Composes the spacing spec from the Box primitivie.

Composes the position spec from the Box primitivie.

Composes the layout spec from the Box primitivie.

Composes the Paragraph component as the base.

Composes the Paragraph component as the base.

Properties
NameTypeDescription
isAstrixShown
bool

Wether or not tho show an asterix after the label.

children
node

The contents of the validation message. This is wrapped in a paragraph, use a string.

theme
(required)
object

Theme provided by ThemeProvider.

Help and resources