All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.cjs.components.center.absolute-center.cjs Maven / Gradle / Ivy

Go to download

Responsive and accessible React UI components built with React and Emotion

The newest version!
"use strict";
"use client";
'use strict';

var factory = require('../../styled-system/factory.cjs');

const AbsoluteCenter = factory.chakra("div", {
  base: {
    position: "absolute",
    display: "flex",
    alignItems: "center",
    justifyContent: "center"
  },
  variants: {
    axis: {
      horizontal: {
        insetStart: "50%",
        transform: "translateX(-50%)"
      },
      vertical: {
        top: "50%",
        transform: "translateY(-50%)"
      },
      both: {
        insetStart: "50%",
        top: "50%",
        transform: "translate(-50%, -50%)"
      }
    }
  },
  defaultVariants: {
    axis: "both"
  }
});
AbsoluteCenter.displayName = "AbsoluteCenter";

exports.AbsoluteCenter = AbsoluteCenter;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy