DocSpace-buildtools/web/ASC.Web.Components/src/components/field-container/README.md

30 lines
930 B
Markdown
Raw Normal View History

# FieldContainer
## Usage
```js
import { FieldContainer } from 'asc-web-components';
```
### <Label>
Responsive form field container
#### Usage
```js
<FieldContainer labelText="Name:">
<TextInput value="" onChange={(e) => console.log(e.target.value)} />
</FieldContainer>
```
#### Properties
| Props | Type | Required | Values | Default | Description |
| ------------| -------- | :------: | -------| ------- | -------------------------------------------- |
| `isVertical`| `bool` | - | - | false | Vertical or horizontal alignment |
| `isRequired`| `bool` | - | - | false | Indicates that the field is required to fill |
| `hasError` | `bool` | - | - | false | Indicates that the field is incorrect |
| `labelText` | `string` | - | - | - | Field label text |