2019-08-27 12:43:30 +00:00
|
|
|
# FieldContainer
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { FieldContainer } from 'asc-web-components';
|
|
|
|
```
|
|
|
|
|
|
|
|
### <Label>
|
|
|
|
|
|
|
|
Responsive form field container
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
|
|
|
|
<FieldContainer labelText="Name:">
|
|
|
|
<TextInput/>
|
2019-09-04 09:17:55 +00:00
|
|
|
</FieldContainer>
|
2019-08-27 12:43:30 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ------------| -------- | :------: | -------| ------- | -------------------------------------------- |
|
2019-09-04 09:17:55 +00:00
|
|
|
| `isVertical`| `bool` | - | - | false | Vertical or horizontal alignment |
|
2019-08-27 12:43:30 +00:00
|
|
|
| `isRequired`| `bool` | - | - | false | Indicates that the field is required to fill |
|
2019-09-04 09:17:55 +00:00
|
|
|
| `hasError` | `bool` | - | - | false | Indicates that the field is incorrect |
|
2019-08-27 12:43:30 +00:00
|
|
|
| `labelText` | `string` | - | - | - | Field label text |
|