Skip to content
Gravity Logo / Docs Gravity home
Browse documentation
Documentation/Gravity Web

Row

The Row component adds space below a UI element or group of UI elements. It can optionally restrict the width of the row.

import { Row } from 'components/lib';

function MyComponent({ ...props }){

  return (
    <div>
      <Row width='md'>
        <div>Element 1</div>
        <div>Element 2</div>
      </Row>
    </div>
  );
}

Props

PropDescriptionRequiredValue
childrenchildren to renderrequiredcomponent
classNamecustom styleoptionalSCSS or Tailwind
widthrestrict the width of the rowoptionastring (sm/md/lg/xl)

Notes

  • The children prop allows for rendering nested components within the row.
  • The width prop restricts the width of the row if provided.
  • The className prop allows for custom styling to be applied.