Applying the position system modifier to your component will allow consumers of your component to pass in the following props:

PropertyTypeDescription
$position(See MDN)Applies position styles
$top(See MDN)Applies top styles
$bottom(See MDN)Applies bottom styles
$left(See MDN)Applies left styles
$right(See MDN)Applies right styles
$zIndexnumberApplies zIndex styles

z-index stacking order

We use the following rule of thumb:

  • >= 300 Modals
  • 251 Reserved for Masthead
  • 100 - 200 Inline overlays (popovers, tooltips etc)
  • < 100 Components