2.0.1 • Published 12 months ago
@rhc-shared-components/form-group-container v2.0.1
@rhc-shared-components/form-group-container
Form group container for Red Hat certified technology apps
Install
yarn add @rhc-shared-components/form-group-container
Usage
import React, { Component } from 'react'
import { FormGroupContainer } from '@rhc-shared-components/form-group-container'
// ...
class Example extends Component {
// .....
// when used with formik contexts
render() {
return <FormGroupContainer
validated={meta.touched && meta.error ? ValidatedOptions.error : ValidatedOptions.default}
helperTextInvalid={meta.error}
isRequired={isRequired}
fieldId={rest.name}
label={label}
helperText={helperText}
{...(labelIcon && {labelIcon: labelIcon})}
{...formGroupProps}
>
// your form item
</FormGroupContainer>
}
}
License
MIT © gautamkrishnar
2.0.1
12 months ago
2.0.0
12 months ago
1.0.1
1 year ago
1.0.0
1 year ago
0.4.0
1 year ago
0.3.2
3 years ago
0.3.0
3 years ago
0.2.9
4 years ago
0.2.8
4 years ago
0.2.7
4 years ago
0.2.6
4 years ago
0.2.5
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.2.4
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago