Relative

Use Relative component to control position and to act as a parent/ancestor to an Absolute element.

Extends: Box

Relative postioned
<Relative p={2}>
  Relative postioned
</Relative>

Props

PropTypeDescription
topnumber, string, or arraySets top
bottomnumber, string, or arraySets bottom
leftnumber, string, or arraySets left
rightnumber, string, or arraySets right
zIndexnumber or stringSets z-index