Skip to content

Position

  • Deprecated
  • Review pending by accessibility team

The Position component is a wrapper component that gives the containing component css positioning abilities.

Deprecation

Use Box instead.

Before

<>
<Position position="absolute">...</Position>
<Absolute>...</Absolute>
<Relative>...</Relative>
<Fixed>...</Fixed>
<Sticky>...</Sticky>
</>

After

<>
<Box position="absolute">...</Box>
<Box position="absolute">...</Box>
<Box position="relative">...</Box>
<Box position="fixed">...</Box>
<Box position="sticky">...</Box>
</>

Default examples

System props

Position components get POSITION, LAYOUT, FLEX, and COMMON system props. Read our System Props doc page for a full list of available props.

Component props

Position does not get any additional props other than the system props mentioned above.

Edit this page on GitHub
3 contributorsmperrotticolebemissiddharthkp
Last edited by mperrotti on March 16, 2022