DocSpace-client/packages/shared/components/field-container
Aleksandr Lushkin 31323d26ba Merge branch 'refs/heads/develop' into feature/rtl-refactor
# Conflicts:
#	packages/client/src/components/ItemIcon.js
#	packages/client/src/components/dialogs/CreateEditRoomDialog/sub-components/RoomTypeDropdown/DropdownMobile.js
#	packages/client/src/components/panels/EditLinkPanel/StyledEditLinkPanel.js
#	packages/client/src/components/panels/InvitePanel/StyledInvitePanel.js
#	packages/client/src/components/panels/UploadPanel/FileRow.js
#	packages/client/src/pages/FormGallery/Filter/SortFilter/index.styled.js
#	packages/client/src/pages/PortalSettings/categories/data-import/components/AddEmailsStep/AccountsTable/RowView/UsersRowContent.tsx
#	packages/client/src/pages/PortalSettings/categories/storage-management/StyledComponent.js
#	packages/client/src/pages/Profile/Section/Body/sub-components/main-profile/styled-main-profile.js
#	packages/shared/components/media-viewer/MediaViewer.styled.ts
2024-07-29 15:28:49 +02:00
..
FieldContainer.stories.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
FieldContainer.styled.ts Shared: refactor rtl 2024-07-16 10:30:28 +02:00
FieldContainer.test.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
FieldContainer.tsx Fix Bug 69324 - Settings: Branding. Tab breaks when saving empty Company name 2024-07-22 13:12:50 +04:00
FieldContainer.types.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
index.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
README.md Client: fix wrong import - export for shared components 2024-01-10 11:01:43 +03:00

FieldContainer

Responsive form field container

Usage

import { FieldContainer } from "@docspace/shared/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
removeMargin bool - - false Remove default margin property
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