DocSpace-client/packages/components/row-content
2023-10-09 18:02:32 +04:00
..
index.js Web:Components: apply new breakpoints 2023-10-08 07:48:46 +03:00
README.md Web:Common/Client/Components: add PUBLIC_DIR alias 2023-01-27 17:08:30 +03:00
row-content.mdx Web: Components: fixed storybook blocks import 2023-05-31 20:00:04 +05:00
row-content.stories.js Web: Components: fixed console warnings 2023-05-31 20:01:38 +05:00
row-content.test.js
styled-row-content.js Added mobileMore media query const 2023-10-09 18:02:32 +04:00

RowContent

Required for formatted output of elements inside Row

Usage

import RowContent from "@docspace/components/row-content";
import SendClockReactSvg from "PUBLIC_DIR/images/send.clock.react.svg";
import CatalogSpamReactSvg from "PUBLIC_DIR/images/catalog.spam.react.svg";
<RowContent>
  <Link type="page" title="Demo" isBold={true} fontSize="15px" color="#333333">
    Demo
  </Link>
  <>
    <SendClockReactSvg size="small" isfill={true} color="#3B72A7" />
    <CatalogSpamReactSvg size="small" isfill={true} color="#3B72A7" />
  </>
  <Link type="page" title="Demo" fontSize="12px" color="#A3A9AE">
    Demo
  </Link>
  <Link
    containerWidth="160px"
    type="action"
    title="Demo"
    fontSize="12px"
    color="#A3A9AE"
  >
    Demo
  </Link>
  <Link type="page" title="0 000 0000000" fontSize="12px" color="#A3A9AE">
    0 000 0000000
  </Link>
  <Link
    containerWidth="160px"
    type="page"
    title="demo@demo.com"
    fontSize="12px"
    color="#A3A9AE"
  >
    demo@demo.com
  </Link>
</RowContent>

To correctly display components inside RowContent, you must specify them in a certain order.

The first and second specified components will be interpreted as Main elements. First will be MainTitle and second MainIcons. All subsequent components will be located on the right and are considered SideElements.

Consider location of components in advance, since when viewing in tablet mode, the markup will shift SideElements to second line.

Each not main child can take containerWidth property for task of width of child's container.

Properties

Props Type Required Values Default Description
children node - - Components displayed inside RowContent
className string - - - Accepts class
containerWidth string - - 100px For task of width of child's container
disableSideInfo bool - - false If you do not need SideElements
id string - - - Accepts id
sideColor string - - - Need for change side information color
style obj, array - - - Accepts css style