DocSpace-client/packages/components/field-container
2023-07-10 09:57:04 +02:00
..
field-container.stories.js
field-container.test.js
index.js Web:Components:Add tooltipClass in FieldContainer. 2023-06-29 16:26:04 +03:00
README.md
styled-field-container.js web component feild fix icon 2023-06-20 14:35:24 +03:00

FieldContainer

Responsive form field container

Usage

import FieldContainer from "@docspace/components/field-container";
<FieldContainer labelText="Name:">
  <TextInput value="" onChange={(e) => console.log(e.target.value)} />
</FieldContainer>

Properties

Props Type Required Values Default Description
className string - - - Accepts class
errorColor string - - #C96C27 Error text color
errorMessageWidth string - - 320px Error text width
errorMessage string - - - Error message text
hasError bool - - false Indicates that the field is incorrect
helpButtonHeaderContent string - - - Tooltip header content (tooltip opened in aside)
id string - - - Accepts id
isRequired bool - - false Indicates that the field is required to fill
isVertical bool - - false Vertical or horizontal alignment
labelText string - - - Field label text
labelVisible bool - - true Sets visibility of field label section
maxLabelWidth string - - 110px Max label width in horizontal alignment
style obj, array - - - Accepts css style
tooltipContent object,string - - - Tooltip content